Skip to content

Commit

Permalink
#150: Add skeleton classes for remaining ICAT backend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Nov 20, 2020
1 parent d7b88dd commit 07e42ec
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/icat/test_isis_endpoints.py
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
24 changes: 24 additions & 0 deletions test/icat/test_session_handling.py
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
70 changes: 70 additions & 0 deletions test/icat/test_standard_endpoints.py
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

0 comments on commit 07e42ec

Please sign in to comment.