From e65bef9c22244fc9bcd22a37d335f5f76ba16ff5 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Thu, 26 Sep 2024 10:02:15 +0200 Subject: Create separate packages for library and CLI --- src/state_json_unittest.py | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/state_json_unittest.py (limited to 'src/state_json_unittest.py') diff --git a/src/state_json_unittest.py b/src/state_json_unittest.py deleted file mode 100644 index e784f58..0000000 --- a/src/state_json_unittest.py +++ /dev/null @@ -1,13 +0,0 @@ -import pytest -import state_json - -def test_saveAndLoad(tmp_path): - file = tmp_path / "test.json" - state = {"key": [10, 20, None], "another_key": "value"} - - state_json.save(file, state) - - assert state_json.load(file) == state - -def test_missingFile(tmp_path): - assert state_json.load(tmp_path / "missing.json") == {} -- cgit v1.2.3