-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#150: Add skeleton classes for remaining ICAT backend tests
- Loading branch information
1 parent
d7b88dd
commit 07e42ec
Showing
3 changed files
with
106 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class TestISISEndpoints: | ||
def test_valid_get_facility_cycles_with_filters(self): | ||
pass | ||
|
||
def test_valid_get_facility_cycles_count_with_filters(self): | ||
pass | ||
|
||
def test_valid_get_investigations_with_filters(self): | ||
pass | ||
|
||
def test_valid_get_investigations_count_with_filters(seLf): | ||
pass |
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,24 @@ | ||
class TestSessionHandling: | ||
def test_session_id_decorator(self): | ||
pass | ||
|
||
def test_get_valid_session_details(self): | ||
pass | ||
|
||
def test_get_invalid_session_details(self): | ||
pass | ||
|
||
def test_refresh_session(self): | ||
pass | ||
|
||
def test_valid_login(self): | ||
pass | ||
|
||
def test_invalid_login(self): | ||
pass | ||
|
||
def test_valid_logout(self): | ||
pass | ||
|
||
def test_invalid_logout(self): | ||
pass |
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,70 @@ | ||
class TestStandardEndpoints: | ||
def test_all_endpoints_exist(self): | ||
pass | ||
|
||
def test_valid_get_with_filters(self): | ||
pass | ||
|
||
def test_invalid_get_with_filters(self): | ||
# Invalid data? | ||
pass | ||
|
||
def test_filters_applied_get_with_filters(self): | ||
pass | ||
|
||
def test_valid_create_data(self): | ||
pass | ||
|
||
def test_invalid_create_data(self): | ||
# Invalid request body | ||
pass | ||
|
||
def test_invalid_create_data_1(self): | ||
# TODO - Rename function | ||
# Target ICATObjectExistsError | ||
pass | ||
|
||
def test_valid_update_data(self): | ||
pass | ||
|
||
def test_valid_boundary_update_data(self): | ||
""" Request body is a dictionary, not a list of dictionaries""" | ||
pass | ||
|
||
def test_invalid_update_data(self): | ||
# Exclude an ID at in one of the data pieces | ||
pass | ||
|
||
def test_valid_get_one_with_filters(self): | ||
pass | ||
|
||
def test_filters_applied_get_one_with_filters(self): | ||
# Can't be a limit filter, maybe order desc would be better | ||
pass | ||
|
||
def test_valid_count_with_filters(self): | ||
pass | ||
|
||
def test_filters_applied_count_with_filters(self): | ||
pass | ||
|
||
def test_valid_get_with_id(self): | ||
pass | ||
|
||
def test_invalid_get_with_id(self): | ||
# Do a get one with filters (order desc), extract the id of that, add 5 and do a | ||
# request for that | ||
pass | ||
|
||
def test_valid_delete_with_id(self): | ||
pass | ||
|
||
def test_invalid_delete_with_id(self): | ||
# like invalid get, but try to delete | ||
pass | ||
|
||
def test_valid_update_with_id(self): | ||
pass | ||
|
||
def test_invalid_update_with_id(self): | ||
pass |