@@ -25,7 +25,7 @@ def sample_content(tmp_path):
2525
2626
2727def test_authenticate (client ):
28- """Test authenticate function ."""
28+ """Test authenticate method ."""
2929 with requests_mock .Mocker () as m :
3030 email = 'test@test.mock'
3131 password = '1234'
@@ -39,7 +39,7 @@ def test_authenticate(client):
3939
4040
4141def test_get_record (client ):
42- """Test get_record function ."""
42+ """Test get_record method ."""
4343 with requests_mock .Mocker () as m :
4444 uri = 'mock://example.com/items/123?expand=all'
4545 json_object = {'metadata' : {'title' : 'Sample title' }, 'type' : 'item' }
@@ -49,7 +49,7 @@ def test_get_record(client):
4949
5050
5151def test_filtered_item_search (client ):
52- """Test filtered_item_search function ."""
52+ """Test filtered_item_search method ."""
5353 with requests_mock .Mocker () as m :
5454 key = 'dc.title'
5555 string = 'test'
@@ -65,7 +65,7 @@ def test_filtered_item_search(client):
6565
6666
6767def test_post_coll_to_comm (client ):
68- """Test post_coll_to_comm function ."""
68+ """Test post_coll_to_comm method ."""
6969 with requests_mock .Mocker () as m :
7070 comm_handle = '1234'
7171 coll_name = 'Test Collection'
@@ -79,7 +79,7 @@ def test_post_coll_to_comm(client):
7979
8080
8181def test_post_items_to_coll (client , sample_content ):
82- """Test post_items_to_coll function ."""
82+ """Test post_items_to_coll method ."""
8383 with requests_mock .Mocker () as m :
8484 coll_metadata = [{"metadata" : [
8585 {"key" : "file_identifier" ,
@@ -102,7 +102,7 @@ def test_post_items_to_coll(client, sample_content):
102102
103103
104104def test_post_bitstreams_to_item (client , sample_content ):
105- """Test post_bitstreams_to_item function ."""
105+ """Test post_bitstreams_to_item method ."""
106106 with requests_mock .Mocker () as m :
107107 item_id = 'a1b2'
108108 ingest_type = 'local'
@@ -118,7 +118,7 @@ def test_post_bitstreams_to_item(client, sample_content):
118118
119119
120120def test__pop_inst (client ):
121- """Test _pop_inst function ."""
121+ """Test _pop_inst method ."""
122122 class_type = models .Collection
123123 rec_obj = {'name' : 'Test title' , 'type' : 'collection' , 'items' : []}
124124 rec_obj = client ._pop_inst (class_type , rec_obj )
@@ -127,7 +127,7 @@ def test__pop_inst(client):
127127
128128
129129def test__build_uuid_list (client ):
130- """Test _build_uuid_list function ."""
130+ """Test _build_uuid_list method ."""
131131 rec_obj = {'items' : [{'uuid' : '1234' }]}
132132 children = 'items'
133133 child_list = client ._build_uuid_list (rec_obj , children )
@@ -149,3 +149,9 @@ def test_build_file_dict_remote():
149149 file_list = models .build_file_dict_remote (directory_url , file_type ,
150150 file_dict )
151151 assert '999' in file_list
152+
153+
154+ # # How to test this? Applies to asaps as well
155+ # def test_create_csv_from_list():
156+ # """Test create_csv_from_list function."""
157+ # assert False
0 commit comments