test: move test_temp_data_dir to store tests

Refs: OPS-70
This commit is contained in:
Christoph J. Scherr 2025-03-23 13:33:15 +01:00
parent e700c0d4cb
commit 0c0554e931
No known key found for this signature in database
GPG key ID: 9EB784BB202BB7BB
2 changed files with 10 additions and 10 deletions

View file

@ -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",