mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
sconfig: add support for studio token (#9213)
config: add support for studio token
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user