From 0c0554e9316b342e4140f7e66f225cfff548e0bb Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Sun, 23 Mar 2025 13:33:15 +0100 Subject: [PATCH] test: move test_temp_data_dir to store tests Refs: OPS-70 --- tests/test_haiku.py | 10 ---------- tests/test_store.py | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/test_haiku.py b/tests/test_haiku.py index 7735923..c1b03ed 100644 --- a/tests/test_haiku.py +++ b/tests/test_haiku.py @@ -3,7 +3,6 @@ from __future__ import annotations -import os import json from pytest_httpserver import HTTPServer import requests @@ -21,15 +20,6 @@ from senju.haiku import Haiku # noqa: F401 # Rust's libtest -def test_temp_data_dir(temp_data_dir): - print(temp_data_dir) - testpath = temp_data_dir / "__test" - with open(testpath, "w") as f: - f.write("that dir actually works") - os.remove(testpath) - assert not os.path.exists(testpath) - - def test_create_haiku(): haiku = Haiku(["line number 1", "line number 2", "line number 3"]) assert haiku.lines[0] == "line number 1" diff --git a/tests/test_store.py b/tests/test_store.py index ac8aac4..f4337c6 100644 --- a/tests/test_store.py +++ b/tests/test_store.py @@ -3,11 +3,21 @@ from __future__ import annotations import pytest # noqa: F401 +import os from senju.haiku import DEFAULT_HAIKU, Haiku from senju.store_manager import StoreManager # noqa: F401 +def test_temp_data_dir(temp_data_dir): + print(temp_data_dir) + testpath = temp_data_dir / "__test" + with open(testpath, "w") as f: + f.write("that dir actually works") + os.remove(testpath) + assert not os.path.exists(testpath) + + def test_save_and_load_any(store_manager: StoreManager): thing = { "color": "blue",