From 523903f5e6fcf85639a5ab374036725136e1d9c2 Mon Sep 17 00:00:00 2001 From: anjalakaturi <59932615+anjalakaturi@users.noreply.github.com> Date: Tue, 18 Apr 2023 13:26:32 -0600 Subject: [PATCH 1/2] Update test_download.py --- tests/test_download.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/test_download.py b/tests/test_download.py index db7b0d20..e956ab51 100644 --- a/tests/test_download.py +++ b/tests/test_download.py @@ -11,14 +11,14 @@ def test_download(self): test_type = "Download" compare_get_request_download("/public/:collectionId/:displayId/:version/sbol", route_parameters = ["igem","BBa_B0034", "1"], headers = headers, test_type = test_type) - compare_get_request_download("/public/:collectionId/:displayId/:version/sbol", route_parameters = ["testid1","part_pIKE_Toggle_1","1"], test_name = "sbol1", headers = headers, test_type = test_type) - compare_get_request_download("/public/:collectionId/:displayId/sbol", route_parameters = ["igem","BBa_B0034"], headers = headers, test_type = test_type) - compare_get_request_download("/public/:collectionId/:displayId/sbol", test_name = "sbol1", route_parameters = ["testid1","part_pIKE_Toggle_1"], headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/:version/sbol", route_parameters = ["testid1","part_pIKE_Toggle_1","1"], test_name = "sbol1", headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/sbol", route_parameters = ["igem","BBa_B0034"], headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/sbol", test_name = "sbol1", route_parameters = ["testid1","part_pIKE_Toggle_1"], headers = headers, test_type = test_type) - compare_get_request_download("/public/:collectionId/:displayId/:version/sbolnr", route_parameters = ["igem","BBa_B0034", "1"], headers = headers, test_type = test_type) - compare_get_request_download("/public/:collectionId/:displayId/:version/sbolnr", test_name = "sbolnr1", route_parameters = ["testid1","part_pIKE_Toggle_1","1"], headers = headers, test_type = test_type) - compare_get_request_download("/public/:collectionId/:displayId/sbolnr", route_parameters = ["igem","BBa_B0034"], headers = headers, test_type = test_type) - compare_get_request_download("/public/:collectionId/:displayId/sbolnr", test_name = "sbolnr1", route_parameters = ["testid1","part_pIKE_Toggle_1"], headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/:version/sbolnr", route_parameters = ["igem","BBa_B0034", "1"], headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/:version/sbolnr", test_name = "sbolnr1", route_parameters = ["testid1","part_pIKE_Toggle_1","1"], headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/sbolnr", route_parameters = ["igem","BBa_B0034"], headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/sbolnr", test_name = "sbolnr1", route_parameters = ["testid1","part_pIKE_Toggle_1"], headers = headers, test_type = test_type) # # user/testuser/test_attachment/part_pIKE_Toggle_1/1 # compare_get_request_download("/user/:userId/:collectionId/:displayId/sbol", route_parameters = ["testuser","test_attachment","part_pIKE_Toggle_1"], headers = headers) @@ -26,11 +26,11 @@ def test_download(self): # compare_get_request_download("/user/:userId/:collectionId/:displayId/:version/sbol", route_parameters = ["testuser","test_attachment","part_pIKE_Toggle_1","1"], headers = headers) # compare_get_request_download("/user/:userId/:collectionId/:displayId/:version/sbolnr", route_parameters = ["testuser","test_attachment","part_pIKE_Toggle_1","1"], headers = headers) - compare_get_request_download("/public/:collectionId/:displayId/:version/gff", route_parameters = ["igem","BBa_B0034", "1"], headers = headers, test_type = test_type) - compare_get_request_download("/public/:collectionId/:displayId/:version/fasta", route_parameters = ["igem","BBa_B0034", "1"], headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/:version/gff", route_parameters = ["igem","BBa_B0034", "1"], headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/:version/fasta", route_parameters = ["igem","BBa_B0034", "1"], headers = headers, test_type = test_type) - compare_get_request_download("/public/:collectionId/:displayId/:version/gff", test_name = "gff1", route_parameters = ["testid1","part_pIKE_Toggle_1","1"], headers = headers, test_type = test_type) - compare_get_request_download("/public/:collectionId/:displayId/:version/fasta", test_name = "fasta1", route_parameters = ["testid1","part_pIKE_Toggle_1","1"], headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/:version/gff", test_name = "gff1", route_parameters = ["testid1","part_pIKE_Toggle_1","1"], headers = headers, test_type = test_type) + #compare_get_request_download("/public/:collectionId/:displayId/:version/fasta", test_name = "fasta1", route_parameters = ["testid1","part_pIKE_Toggle_1","1"], headers = headers, test_type = test_type) # compare_get_request_download("/user/:userId/:collectionId/:displayId/:version/gff", route_parameters = ["testuser","test_attachment","part_pIKE_Toggle_1","1"], headers = headers) # compare_get_request_download("/user/:userId/:collectionId/:displayId/:version/fasta", route_parameters = ["testuser","test_attachment","part_pIKE_Toggle_1","1"], headers = headers) @@ -39,4 +39,4 @@ def test_download(self): test_print("test_download completed") # http://localhost:7777/user/testuser/test_hash/attachment_0ff5d71561d144b7b367765a8c1f2d00/1/download - # compare_get_request_download("/user/:userId/:collectionId/:displayId/:version/download", route_parameters = ["testuser","test_hash","attachment_0ff5d71561d144b7b367765a8c1f2d00","1"], headers = {"Accept": "text/html"}) \ No newline at end of file + # compare_get_request_download("/user/:userId/:collectionId/:displayId/:version/download", route_parameters = ["testuser","test_hash","attachment_0ff5d71561d144b7b367765a8c1f2d00","1"], headers = {"Accept": "text/html"}) From 0c78ec135044807e65bbe74f367ef432d17b1322 Mon Sep 17 00:00:00 2001 From: anjalakaturi <59932615+anjalakaturi@users.noreply.github.com> Date: Tue, 18 Apr 2023 13:32:06 -0600 Subject: [PATCH 2/2] Update test_root.py --- tests/test_root.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_root.py b/tests/test_root.py index 25a1ab47..540c86a9 100644 --- a/tests/test_root.py +++ b/tests/test_root.py @@ -37,9 +37,9 @@ def test_root(): testSearch.test_search() #TODO: TEST TEST_DOWNLOAD - # from test_download import TestDownload - # testDownload = TestDownload() - # testDownload.test_download() + from test_download import TestDownload + testDownload = TestDownload() + testDownload.test_download() # # TODO: add field edit field are commented out # from test_edit import TestEdit