diff --git a/snuba/migrations/autogeneration/main.py b/snuba/migrations/autogeneration/main.py index bd588c66586..57af47ab11c 100644 --- a/snuba/migrations/autogeneration/main.py +++ b/snuba/migrations/autogeneration/main.py @@ -11,6 +11,7 @@ def generate(local_storage_path: str) -> tuple[str, str]: .stdout.decode("utf-8") .strip() ) + print(local_repo_path) local_storage_path = os.path.abspath(os.path.expanduser(local_storage_path)) if not local_storage_path.startswith(local_repo_path): raise ValueError( diff --git a/tests/migrations/test_autogeneration.py b/tests/migrations/test_autogeneration.py index c85134406c8..76c6e900def 100644 --- a/tests/migrations/test_autogeneration.py +++ b/tests/migrations/test_autogeneration.py @@ -14,4 +14,4 @@ def test_error() -> None: with pytest.raises( ValueError, match=r"Storage path .* is not in the git repository .*" ): - generate("/Users/bloop/hello") + generate("~/hello.txt")