-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #455 from raginirai553/master
final code for kit id removal from account creation process
- Loading branch information
Showing
6 changed files
with
14 additions
and
85 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 |
---|---|---|
|
@@ -173,7 +173,6 @@ def setup_test_data(): | |
12345, | ||
"US" | ||
), | ||
"fakekit", | ||
"en_US") | ||
acct_repo.create_account(acc) | ||
|
||
|
@@ -664,7 +663,6 @@ def test_create_new_account(self): | |
"email": FAKE_EMAIL, | ||
"first_name": "Jane", | ||
"last_name": "Doe", | ||
"kit_name": "jb_qhxqe", | ||
"language": "en_US" | ||
}) | ||
|
||
|
@@ -738,13 +736,13 @@ def test_edit_account_info(self): | |
"email": "[email protected]", | ||
"first_name": "Dan", | ||
"last_name": "H", | ||
"kit_name": "fakekit", | ||
"language": "en_US" | ||
} | ||
|
||
# Hard to guess these two, so let's pop em out | ||
acc.pop("creation_time") | ||
acc.pop("update_time") | ||
acc.pop('kit_name') | ||
self.assertDictEqual(acc, regular_data, "Check Initial Account Match") | ||
|
||
regular_data.pop("account_id") | ||
|
@@ -753,10 +751,8 @@ def test_edit_account_info(self): | |
# accounts table without changing the email in the authorization causes | ||
# authorization errors (as it should) | ||
the_email = regular_data["email"] | ||
kit_name = regular_data['kit_name'] | ||
fuzzy_data = fuzz(regular_data) | ||
fuzzy_data['email'] = the_email | ||
fuzzy_data['kit_name'] = kit_name | ||
fuzzy_data['language'] = regular_data["language"] | ||
|
||
# submit an invalid account type | ||
|
@@ -788,6 +784,7 @@ def test_edit_account_info(self): | |
fuzzy_data["account_id"] = "aaaaaaaa-bbbb-cccc-dddd-eeeeffffffff" | ||
acc.pop('creation_time') | ||
acc.pop('update_time') | ||
acc.pop('kit_name') | ||
self.assertDictEqual(fuzzy_data, acc, "Check Fuzz Account Match") | ||
|
||
# Attempt to restore back to old data. | ||
|
@@ -804,6 +801,7 @@ def test_edit_account_info(self): | |
|
||
acc.pop('creation_time') | ||
acc.pop('update_time') | ||
acc.pop('kit_name') | ||
regular_data['account_type'] = 'standard' | ||
regular_data["account_id"] = "aaaaaaaa-bbbb-cccc-dddd-eeeeffffffff" | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--new patch to remove the not a null constraint in the account table for column created_with_kit_id | ||
ALTER TABLE ag.account ALTER COLUMN created_with_kit_id DROP NOT NULL; |
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