Skip to content

Commit

Permalink
login url changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjake committed Mar 21, 2019
1 parent cb309c9 commit 6959900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_get_auth_config():
headers = {'set-cookie': '[email protected]',
'set-cookie2': 'logged-in-sig=test-sig; version=0'}
# set-cookie2: Ugly hack to workaround responses lack of support for multiple headers
responses.add(responses.POST, 'https://archive.org/account/login.php',
responses.add(responses.POST, 'https://archive.org/account/login',
adding_headers=headers)

test_body = """{
Expand Down Expand Up @@ -69,7 +69,7 @@ def ugly_hack_build_response(self, req, resp):
@responses.activate
def test_get_auth_config_auth_fail():
# No logged-in-sig cookie set raises AuthenticationError.
responses.add(responses.POST, 'https://archive.org/account/login.php')
responses.add(responses.POST, 'https://archive.org/account/login')
try:
internetarchive.config.get_auth_config('[email protected]', 'password1')
except AuthenticationError as exc:
Expand Down

0 comments on commit 6959900

Please sign in to comment.