-
Notifications
You must be signed in to change notification settings - Fork 8
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 #1500 from ScilifelabDataCentre/dev
New release 2023-12-20
- Loading branch information
Showing
9 changed files
with
59 additions
and
9 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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Do not do major version upgrade during 2024. | ||
# If mid or minor version reaches 9, continue with 10, 11 etc etc. | ||
__version__ = "2.6.0" | ||
__version__ = "2.6.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
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 |
---|---|---|
|
@@ -32,6 +32,11 @@ | |
new_unit_admin = {"email": "[email protected]", "role": "Unit Admin"} | ||
new_super_admin = {"email": "[email protected]", "role": "Super Admin"} | ||
new_unit_user = {"email": "[email protected]", "role": "Unit Personnel"} | ||
new_owner_existing_project = { | ||
"email": "[email protected]", | ||
"project": "public_project_id", | ||
"role": "Project Owner", | ||
} | ||
existing_research_user = {"email": "[email protected]", "role": "Researcher"} | ||
existing_research_user_owner = {"email": "[email protected]", "role": "Project Owner"} | ||
existing_research_user_to_existing_project = { | ||
|
@@ -1253,9 +1258,16 @@ def get_list(as_user) -> dict: | |
researcher_to_project["project"] = "unit2testing" | ||
invite_user(researcher_to_project, "unitadmin") | ||
|
||
researcher_to_project = dict(new_owner_existing_project) | ||
invite_user(researcher_to_project, "unitadmin") | ||
researcher_to_project["project"] = "second_public_project_id" | ||
invite_user(researcher_to_project, "unitadmin") | ||
researcher_to_project["project"] = "unit2testing" | ||
invite_user(researcher_to_project, "unitadmin") | ||
|
||
response = get_list("superadmin") | ||
assert "invites" in response.json | ||
assert len(response.json["invites"]) == 5 | ||
assert len(response.json["invites"]) == 6 | ||
for entry in response.json["invites"]: | ||
for key in ["Email", "Role", "Projects", "Created", "Unit"]: | ||
assert key in entry | ||
|
@@ -1268,7 +1280,7 @@ def get_list(as_user) -> dict: | |
|
||
response = get_list("unitadmin") | ||
assert "invites" in response.json | ||
assert len(response.json["invites"]) == 2 | ||
assert len(response.json["invites"]) == 3 | ||
for entry in response.json["invites"]: | ||
for key in ["Email", "Role", "Projects", "Created"]: | ||
assert key in entry | ||
|
@@ -1285,7 +1297,7 @@ def get_list(as_user) -> dict: | |
|
||
response = get_list("projectowner") | ||
assert "invites" in response.json | ||
assert len(response.json["invites"]) == 1 | ||
assert len(response.json["invites"]) == 2 | ||
for entry in response.json["invites"]: | ||
for key in ["Email", "Role", "Projects", "Created"]: | ||
assert key in entry | ||
|
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
|
||
def test_version(): | ||
assert version.__version__ == "2.6.0" | ||
assert version.__version__ == "2.6.1" |