Skip to content

Commit

Permalink
Sort version assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeister committed May 21, 2024
1 parent 049e76f commit 43233e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ def test_versioning() -> None:
assert sherlock.__version__ in Interactives.run_cli("--version")
# Ensure __init__ is single source of truth for __version__ in package
# Temporarily allows sherlock.py so as to not trigger early upgrades
assert Interactives.walk_sherlock_for_files_with(r'__version__ *= *') == [ "sherlock/__init__.py", "sherlock/sherlock.py" ]
found:list = Interactives.walk_sherlock_for_files_with(r'__version__ *= *')
expected:list = [ "sherlock/__init__.py", "sherlock/sherlock.py" ]
assert sorted(found) == sorted(expected)

0 comments on commit 43233e9

Please sign in to comment.