Skip to content

Commit

Permalink
fix breaking ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemumma committed Jun 12, 2024
1 parent cbc8c6f commit b5c4265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions snuba/migrations/autogeneration/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/migrations/test_autogeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit b5c4265

Please sign in to comment.