-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ask user to provide name and to agree to PII * Fix test * Move terms and cond to registration and send agreements to server * Add new line print before toc * Update terms link
- Loading branch information
Showing
6 changed files
with
92 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,19 @@ def test_password_req_to_policy(self): | |
@patch("getpass.getpass", side_effect=["Password123!", "Password123!"]) | ||
@patch( | ||
"builtins.input", | ||
side_effect=["1", "[email protected]", "test", "test", "test", "y", "test"], | ||
side_effect=[ | ||
"1", | ||
"y", | ||
"[email protected]", | ||
"y", | ||
"first", | ||
"last", | ||
"test", | ||
"test", | ||
"test", | ||
"y", | ||
"test", | ||
], | ||
) | ||
def test_prompt_and_set_token_registration( | ||
self, mock_input, mock_getpass, mock_server | ||
|
@@ -50,10 +62,14 @@ def test_prompt_and_set_token_registration( | |
"Password123!", | ||
"tabpfn-2023", | ||
{ | ||
"first_name": "first", | ||
"last_name": "last", | ||
"company": "test", | ||
"role": "test", | ||
"use_case": "test", | ||
"contact_via_email": True, | ||
"agreed_terms_and_cond": True, | ||
"agreed_personally_identifiable_information": True, | ||
}, | ||
) | ||
|
||
|
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