-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
3cc7958
commit 5341c7f
Showing
4 changed files
with
59 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,12 +181,14 @@ def test_password_prompt_2sa(self) -> None: | |
[ | ||
"--username", | ||
"[email protected]", | ||
"--password", | ||
"password1", | ||
"--no-progress-bar", | ||
"--cookie-directory", | ||
cookie_dir, | ||
"--auth-only", | ||
], | ||
input="password1\n0\n654321\n", | ||
input="0\n654321\n", | ||
) | ||
self.assertIn("DEBUG Authenticating...", self._caplog.text) | ||
self.assertIn( | ||
|
@@ -217,21 +219,23 @@ def test_password_prompt_2fa(self) -> None: | |
[ | ||
"--username", | ||
"[email protected]", | ||
"--password", | ||
"password1", | ||
"--no-progress-bar", | ||
"--cookie-directory", | ||
cookie_dir, | ||
"--auth-only", | ||
], | ||
input="password1\n654321\n", | ||
input="654321\n", | ||
) | ||
self.assertIn("DEBUG Authenticating...", self._caplog.text) | ||
self.assertIn( | ||
"INFO Two-factor authentication is required", | ||
self._caplog.text, | ||
) | ||
self.assertIn(" 0: (***) ***-**81", result.output) | ||
self.assertIn(" a: (***) ***-**81", result.output) | ||
self.assertIn( | ||
"Please enter two-factor authentication code or device index (0) to send SMS with a code: 654321", | ||
"Please enter two-factor authentication code or device index (a) to send SMS with a code: 654321", | ||
result.output, | ||
) | ||
self.assertIn( | ||
|
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