diff options
author | Eddy Pedroni <epedroni@pm.me> | 2024-09-26 10:02:15 +0200 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2024-09-26 10:02:15 +0200 |
commit | e65bef9c22244fc9bcd22a37d335f5f76ba16ff5 (patch) | |
tree | 9af6fa41bfee6fc03c3ab30cf1b23a82bdf8f2e7 /src/state_json_unittest.py | |
parent | ce76b00d7b2ccac6843732f92becfabb753864a0 (diff) |
Create separate packages for library and CLI
Diffstat (limited to 'src/state_json_unittest.py')
-rw-r--r-- | src/state_json_unittest.py | 13 |
1 files changed, 0 insertions, 13 deletions
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") == {} |