use git remote to find out remote repo url when pinging Studio (#9254)

This commit is contained in:
skshetry
2023-03-28 12:17:48 +05:45
committed by GitHub
parent 006b6f3513
commit faa1bdfbce
4 changed files with 20 additions and 38 deletions
+2 -3
View File
@@ -21,9 +21,8 @@ def test_notify_refs(mocker, status_code):
mock_post = mocker.patch("requests.Session.post", return_value=response)
notify_refs(
"origin",
"TOKEN",
repo_url_finder=lambda: "[email protected]:iterative/dvc.git",
"[email protected]:iterative/dvc.git",
default_token="TOKEN",
pushed=["p1", "p2"],
removed=["r1", "r2"],
)