ratchets

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bf4946531d630ab79919f42c4c6f4c54cf5fba55
parent cad67a35b25b1447184d1923fbc89c9189f59342
Author: Andrew Laack <andrew@laack.co>
Date:   Sat, 21 Jun 2025 00:23:45 -0500

Updated tests to ensure they work without .db initially. Updated version number.

Diffstat:
Mpyproject.toml | 2+-
Mtests/test_files/test_caching.py | 5++++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "ratchets" -version = "0.2.7" +version = "0.2.8" description = "Ratcheted testing in Python." authors = [ { name = "Andrew Laack", email = "andrew@laack.co" } diff --git a/tests/test_files/test_caching.py b/tests/test_files/test_caching.py @@ -10,7 +10,10 @@ def test_create_new_db(): """Ensure DB creation when one does not exist works as expected.""" repo_root = find_project_root() db_path = os.path.join(str(repo_root), CACHING_FILENAME) - os.remove(db_path) + try: + os.remove(db_path) + except FileNotFoundError: + pass db = CachingDatabase(db_path)