mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
Revert "exp push: add trailing slash to the endpoint url" (#9243)
Revert "exp push: add trailing slash to the endpoint url (#9240)"
This reverts commit 5485275b92.
This commit is contained in:
@@ -121,7 +121,7 @@ def _notify_studio(
|
||||
import requests
|
||||
from requests.adapters import HTTPAdapter
|
||||
|
||||
endpoint = urljoin(url or STUDIO_URL, "/webhook/dvc/")
|
||||
endpoint = urljoin(url or STUDIO_URL, "/webhook/dvc")
|
||||
session = requests.Session()
|
||||
session.mount(endpoint, HTTPAdapter(max_retries=3))
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ def test_notify_studio_for_exp_push(mocker):
|
||||
|
||||
assert mock_post.called
|
||||
assert mock_post.call_args == mocker.call(
|
||||
urljoin(STUDIO_URL, "/webhook/dvc/"),
|
||||
urljoin(STUDIO_URL, "/webhook/dvc"),
|
||||
json={
|
||||
"repo_url": "[email protected]:iterative/dvc.git",
|
||||
"client": "dvc",
|
||||
|
||||
Reference in New Issue
Block a user