sconfig: add support for studio token (#9213)

config: add support for studio token
This commit is contained in:
skshetry
2023-03-20 20:59:52 +05:45
committed by GitHub
parent 6c1b786564
commit 8399bf612a
4 changed files with 42 additions and 19 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
from urllib.parse import urljoin
from requests import Response
from dvc.repo.experiments.push import STUDIO_ENDPOINT, _notify_studio
from dvc.repo.experiments.push import STUDIO_URL, _notify_studio
def test_notify_studio_for_exp_push(mocker):
@@ -16,7 +18,7 @@ def test_notify_studio_for_exp_push(mocker):
assert mock_post.called
assert mock_post.call_args == mocker.call(
STUDIO_ENDPOINT,
urljoin(STUDIO_URL, "/webhook/dvc"),
json={
"repo_url": "[email protected]:iterative/dvc.git",
"client": "dvc",