Skip to content

Commit

Permalink
start fake files with uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
briehl committed Dec 13, 2024
1 parent cf6c9f3 commit 711808b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,9 @@ def test_load_and_validate_schema_good():


def test_load_and_validate_schema_missing_file():
not_real_file = Path("not_real")
not_real_file = Path(str(uuid.uuid4()))
# double-check that the file doesn't exist and make a new one if so.
# shouldn't ever happen, ideally, but easy to check.
while not_real_file.exists():
not_real_file = Path(str(uuid.uuid4()))
with pytest.raises(FileNotFoundError, match="No such file or directory"):
Expand Down

0 comments on commit 711808b

Please sign in to comment.