-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Upgrade flask to 2.2.5 and its related dependencies (#2237)
* Upgrade flask and related dependencies Signed-off-by: Kristen Armes <[email protected]> * Fix frontend tests Signed-off-by: Kristen Armes <[email protected]> * Fixing more tests Signed-off-by: Kristen Armes <[email protected]> * Revert databuilder version bump, changes don't affect it Signed-off-by: Kristen Armes <[email protected]> --------- Signed-off-by: Kristen Armes <[email protected]>
- Loading branch information
1 parent
0602992
commit 125b04f
Showing
19 changed files
with
78 additions
and
73 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 |
---|---|---|
|
@@ -106,7 +106,7 @@ def test_create_issue_not_enabled(self) -> None: | |
""" | ||
local_app.config['ISSUE_TRACKER_CLIENT_ENABLED'] = False | ||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', data={ | ||
response = test.post('/api/issue/issue', json={ | ||
'description': 'test description', | ||
'owner_ids': ['[email protected]', '[email protected]'], | ||
'frequent_user_ids': ['[email protected]', '[email protected]'], | ||
|
@@ -127,7 +127,7 @@ def test_create_jira_issue_missing_config(self, mock_issue_tracker_client: unitt | |
mock_issue_tracker_client.side_effect = IssueConfigurationException | ||
local_app.config['ISSUE_TRACKER_URL'] = None | ||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', data={ | ||
response = test.post('/api/issue/issue', json={ | ||
'description': 'test description', | ||
'owner_ids': ['[email protected]', '[email protected]'], | ||
'frequent_user_ids': ['[email protected]', '[email protected]'], | ||
|
@@ -145,7 +145,7 @@ def test_create_jira_issue_no_description(self) -> None: | |
:return: | ||
""" | ||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', data={ | ||
response = test.post('/api/issue/issue', json={ | ||
'owner_ids': ['[email protected]', '[email protected]'], | ||
'frequent_user_ids': ['[email protected]', '[email protected]'], | ||
'priority_level': 'P2', | ||
|
@@ -162,7 +162,7 @@ def test_create_jira_issue_no_key(self) -> None: | |
:return: | ||
""" | ||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', data={ | ||
response = test.post('/api/issue/issue', json={ | ||
'description': 'test description', | ||
'owner_ids': ['[email protected]', '[email protected]'], | ||
'frequent_user_ids': ['[email protected]', '[email protected]'], | ||
|
@@ -179,7 +179,7 @@ def test_create_jira_issue_no_title(self) -> None: | |
:return: | ||
""" | ||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', data={ | ||
response = test.post('/api/issue/issue', json={ | ||
'description': 'test description', | ||
'owner_ids': ['[email protected]', '[email protected]'], | ||
'frequent_user_ids': ['[email protected]', '[email protected]'], | ||
|
@@ -196,7 +196,7 @@ def test_create_jira_issue_no_resource_path(self) -> None: | |
:return: | ||
""" | ||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', data={ | ||
response = test.post('/api/issue/issue', json={ | ||
'description': 'test description', | ||
'owner_ids': ['[email protected]', '[email protected]'], | ||
'frequent_user_ids': ['[email protected]', '[email protected]'], | ||
|
@@ -213,7 +213,7 @@ def test_create_jira_issue_no_priority(self) -> None: | |
:return: | ||
""" | ||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', data={ | ||
response = test.post('/api/issue/issue', json={ | ||
'description': 'test description', | ||
'owner_ids': ['[email protected]', '[email protected]'], | ||
'frequent_user_ids': ['[email protected]', '[email protected]'], | ||
|
@@ -230,7 +230,7 @@ def test_create_jira_issue_no_owner_ids(self) -> None: | |
:return: | ||
""" | ||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', data={ | ||
response = test.post('/api/issue/issue', json={ | ||
'description': 'test description', | ||
'frequent_user_ids': ['[email protected]', '[email protected]'], | ||
'priority_level': 'P2', | ||
|
@@ -247,7 +247,7 @@ def test_create_jira_issue_no_frequent_user_ids(self) -> None: | |
:return: | ||
""" | ||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', data={ | ||
response = test.post('/api/issue/issue', json={ | ||
'description': 'test description', | ||
'owner_ids': ['[email protected]', '[email protected]'], | ||
'priority_level': 'P2', | ||
|
@@ -264,7 +264,7 @@ def test_create_jira_issue_no_project_key(self) -> None: | |
:return: | ||
""" | ||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', data={ | ||
response = test.post('/api/issue/issue', json={ | ||
'description': 'test description', | ||
'owner_ids': ['[email protected]', '[email protected]'], | ||
'frequent_user_ids': ['[email protected]', '[email protected]'], | ||
|
@@ -285,8 +285,7 @@ def test_create_jira_issue_success(self, mock_issue_tracker_client: unittest.moc | |
|
||
with local_app.test_client() as test: | ||
response = test.post('/api/issue/issue', | ||
content_type='multipart/form-data', | ||
data={ | ||
json={ | ||
'description': 'test description', | ||
'owner_ids': ['[email protected]', '[email protected]'], | ||
'frequent_user_ids': ['[email protected]', '[email protected]'], | ||
|
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
Oops, something went wrong.