-
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.
fix: Adjust the integration tests (#85)
- Loading branch information
Showing
4 changed files
with
27 additions
and
268 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -28,14 +28,14 @@ def test_get_folder_by_uids(self): | |
"canEdit": True, | ||
"canSave": True, | ||
"created": "2022-01-10T00:24:58+01:00", | ||
"createdBy": "[email protected]", | ||
"hasAcl": True, | ||
"createdBy": "Anonymous", | ||
"hasAcl": False, | ||
"id": 72, | ||
"orgId": 0, | ||
"title": "Github Integrationtest", | ||
"uid": "6U_QdWJnz", | ||
"updated": "2022-01-10T00:24:58+01:00", | ||
"updatedBy": "[email protected]", | ||
"updatedBy": "Anonymous", | ||
"url": "/dashboards/f/6U_QdWJnz/github-integrationtest", | ||
"version": 1, | ||
}, | ||
|
@@ -50,14 +50,14 @@ def test_get_folder_by_id(self): | |
"canEdit": True, | ||
"canSave": True, | ||
"created": "2022-01-10T00:24:58+01:00", | ||
"createdBy": "[email protected]", | ||
"hasAcl": True, | ||
"createdBy": "Anonymous", | ||
"hasAcl": False, | ||
"id": 72, | ||
"orgId": 0, | ||
"title": "Github Integrationtest", | ||
"uid": "6U_QdWJnz", | ||
"updated": "2022-01-10T00:24:58+01:00", | ||
"updatedBy": "[email protected]", | ||
"updatedBy": "Anonymous", | ||
"url": "/dashboards/f/6U_QdWJnz/github-integrationtest", | ||
"version": 1, | ||
}, | ||
|
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 |
---|---|---|
|
@@ -26,14 +26,14 @@ def test_get_all_users_by_the_current_organization(self): | |
self.organisation.get_all_users_by_the_current_organization() | ||
) | ||
|
||
self.assertEqual(4, organisation_users[1].get("userId")) | ||
self.assertEqual(8, organisation_users[0].get("userId")) | ||
|
||
def test_get_all_users_by_the_current_organization_lookup(self): | ||
organisation_users: list = ( | ||
self.organisation.get_all_users_by_the_current_organization_lookup() | ||
) | ||
|
||
self.assertEqual(4, organisation_users[1].get("userId")) | ||
self.assertEqual(8, organisation_users[0].get("userId")) | ||
|
||
def test_a_update_current_organization(self): | ||
self.organisation.update_current_organization("Test") | ||
|
@@ -55,19 +55,19 @@ def test_a_add_new_user_to_current_organization(self): | |
organisation_users: list = ( | ||
self.organisation.get_all_users_by_the_current_organization_lookup() | ||
) | ||
self.assertEqual("Test", organisation_users[2].get("login")) | ||
self.assertEqual("[email protected]", organisation_users[1].get("login")) | ||
|
||
def test_b_update_organization_user_role_by_user_id(self): | ||
self.organisation.update_organization_user_role_by_user_id(7, "Editor") | ||
self.organisation.update_organization_user_role_by_user_id(1967, "Editor") | ||
|
||
organisation_users: list = ( | ||
self.organisation.get_all_users_by_the_current_organization() | ||
) | ||
self.assertEqual(7, organisation_users[2].get("userId")) | ||
self.assertEqual("Editor", organisation_users[2].get("role")) | ||
self.assertEqual(1967, organisation_users[1].get("userId")) | ||
self.assertEqual("Editor", organisation_users[1].get("role")) | ||
|
||
def test_c_delete_organization_user_by_user_id(self): | ||
self.organisation.delete_organization_user_by_user_id(7) | ||
self.organisation.delete_organization_user_by_user_id(1967) | ||
|
||
organisation_users: list = ( | ||
self.organisation.get_all_users_by_the_current_organization() | ||
|