-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,13 @@ | |
from garth.http import Client | ||
|
||
|
||
@pytest.mark.vcr | ||
@pytest.mark.vcr() | ||
def test_login_email_password_fail(client: Client): | ||
with pytest.raises(GarthHTTPError): | ||
sso.login("[email protected]", "wrong_p@ssword", client=client) | ||
|
||
|
||
@pytest.mark.vcr | ||
@pytest.mark.vcr() | ||
def test_login_success(client: Client): | ||
oauth1, oauth2 = sso.login( | ||
"[email protected]", "correct_password", client=client | ||
|
@@ -26,7 +26,7 @@ def test_login_success(client: Client): | |
assert isinstance(oauth2, OAuth2Token) | ||
|
||
|
||
@pytest.mark.vcr | ||
@pytest.mark.vcr() | ||
def test_login_success_mfa(monkeypatch, client: Client): | ||
def mock_input(_): | ||
return "671091" | ||
|
@@ -42,7 +42,7 @@ def mock_input(_): | |
assert isinstance(oauth2, OAuth2Token) | ||
|
||
|
||
@pytest.mark.vcr | ||
@pytest.mark.vcr() | ||
def test_login_success_mfa_async(monkeypatch, client: Client): | ||
def mock_input(_): | ||
return "031174" | ||
|
@@ -77,7 +77,7 @@ def test_set_expirations(oauth2_token_dict: dict): | |
) | ||
|
||
|
||
@pytest.mark.vcr | ||
@pytest.mark.vcr() | ||
def test_exchange(authed_client: Client): | ||
assert authed_client.oauth1_token | ||
oauth1_token = authed_client.oauth1_token | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters