We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f10269 commit 5064062Copy full SHA for 5064062
tests/conftest.py
@@ -47,16 +47,7 @@ def deserialize(self, cassette_string):
47
48
49
def normalize_endpoint(uri, endpoint, default_endpoint):
50
- old = endpoint
51
- new = default_endpoint
52
-
53
- if old.endswith('/'):
54
- old = old[:-1]
55
56
- if new.endswith('/'):
57
- new = new[:-1]
58
59
- return uri.replace(old, new)
+ return uri.replace(endpoint.rstrip('/'), default_endpoint.rstrip('/'))
60
61
62
def normalize_cassette(cassette_dict):
0 commit comments