import os1from sherlock_interactives import Interactives2import sherlock_project34def test_versioning() -> None:5# Ensure __version__ matches version presented to the user6assert sherlock_project.__version__ in Interactives.run_cli("--version")7# Ensure __init__ is single source of truth for __version__ in package8# Temporarily allows sherlock.py so as to not trigger early upgrades9found:list = Interactives.walk_sherlock_for_files_with(r'__version__ *= *')10expected:list = [11# Normalization is REQUIRED for Windows ( / vs \ )12os.path.normpath("sherlock_project/__init__.py"),13]14# Sorting is REQUIRED for Mac15assert sorted(found) == sorted(expected)161718