cache from toml must be used with a title

This commit is contained in:
2024-07-11 15:55:37 +02:00
parent c3db790281
commit 03602bd816
2 changed files with 9 additions and 6 deletions

View File

@@ -51,9 +51,9 @@ def test_toml():
rin_measurement='./DualComb1GHz_updated_corrected_extrapolated_1GHz_noqn.csv'
"""
cache1 = Cache.from_toml(s1)
cache3 = Cache.from_toml(s3, create=False)
assert cache1.dir == Cache.from_toml(s2).dir
cache1 = Cache.from_toml("test", s1)
cache3 = Cache.from_toml("test", s3, create=False)
assert cache1.dir == Cache.from_toml("test", s2).dir
assert cache1.dir != cache3.dir
assert cache1.dir.exists()
cache1.delete()