@@ -441,7 +441,7 @@ def test_prefect_analyse_rawreads_flow(
441441 },
442442 ],
443443 is_reusable = True ,
444- is_optional = True ,
444+ is_optional = False ,
445445 )
446446 httpx_mock .add_response (
447447 url = f"{ EMG_CONFIG .ena .portal_search_api } ?"
@@ -453,7 +453,7 @@ def test_prefect_analyse_rawreads_flow(
453453 f"&dataPortal=metagenome" ,
454454 json = [{"study_accession" : study_accession }],
455455 is_reusable = True ,
456- is_optional = True ,
456+ is_optional = False ,
457457 )
458458
459459 httpx_mock .add_response (
@@ -543,7 +543,7 @@ def test_prefect_analyse_rawreads_flow(
543543 },
544544 ],
545545 is_reusable = True ,
546- is_optional = True ,
546+ is_optional = False ,
547547 )
548548
549549 # create fake results
@@ -969,36 +969,8 @@ def test_prefect_analyse_rawreads_flow_private_data(
969969 },
970970 ],
971971 is_reusable = True ,
972- is_optional = True ,
972+ is_optional = False ,
973973 )
974- httpx_mock .add_response (
975- url = f"{ EMG_CONFIG .ena .portal_search_api } ?"
976- f"result=study"
977- f"&query=%22%28study_accession%3D{ study_accession } +OR+secondary_study_accession%3D{ study_accession } %29%22"
978- f"&fields=study_title%2Cstudy_description%2Ccenter_name%2Csecondary_study_accession%2Cstudy_name"
979- f"&limit=10"
980- f"&format=json"
981- f"&dataPortal=metagenome" ,
982- match_headers = {}, # public call should not find private study
983- json = [],
984- is_reusable = True ,
985- is_optional = True ,
986- )
987-
988- httpx_mock .add_response (
989- url = f"{ EMG_CONFIG .ena .portal_search_api } ?"
990- f"result=study"
991- f"&query=%22%28study_accession%3D{ study_accession } +OR+secondary_study_accession%3D{ study_accession } %29%22"
992- f"&fields=study_title%2Cstudy_description%2Ccenter_name%2Csecondary_study_accession%2Cstudy_name"
993- f"&limit=10"
994- f"&format=json"
995- f"&dataPortal=metagenome" ,
996- match_headers = {}, # public call should not find private study
997- json = [],
998- is_reusable = True ,
999- is_optional = True ,
1000- )
1001-
1002974 httpx_mock .add_response (
1003975 url = f"{ EMG_CONFIG .ena .portal_search_api } ?"
1004976 f"result=study"
@@ -1012,7 +984,7 @@ def test_prefect_analyse_rawreads_flow_private_data(
1012984 }, # dcc_fake:not-a-dcc-pw
1013985 json = [{"study_accession" : study_accession }],
1014986 is_reusable = True ,
1015- is_optional = True ,
987+ is_optional = False ,
1016988 )
1017989 httpx_mock .add_response (
1018990 url = f"{ EMG_CONFIG .ena .portal_search_api } ?"
@@ -1025,22 +997,8 @@ def test_prefect_analyse_rawreads_flow_private_data(
1025997 match_headers = {}, # public call should not find private study
1026998 json = [],
1027999 is_reusable = True ,
1028- is_optional = True ,
1000+ is_optional = False ,
10291001 )
1030- httpx_mock .add_response (
1031- url = f"{ EMG_CONFIG .ena .portal_search_api } ?"
1032- f"result=study"
1033- f"&query=%22%28study_accession%3D{ study_accession } +OR+secondary_study_accession%3D{ study_accession } %29%22"
1034- f"&fields=study_accession"
1035- f"&limit="
1036- f"&format=json"
1037- f"&dataPortal=metagenome" ,
1038- match_headers = {}, # public call should not find private study
1039- json = [],
1040- is_reusable = True ,
1041- is_optional = True ,
1042- )
1043-
10441002 httpx_mock .add_response (
10451003 url = f"{ EMG_CONFIG .ena .portal_search_api } ?"
10461004 f"result=read_run"
@@ -1131,7 +1089,7 @@ def test_prefect_analyse_rawreads_flow_private_data(
11311089 },
11321090 ],
11331091 is_reusable = True ,
1134- is_optional = True ,
1092+ is_optional = False ,
11351093 )
11361094
11371095 # create fake results
@@ -1468,7 +1426,7 @@ def test_prefect_analyse_rawreads_flow_no_functional(
14681426 },
14691427 ],
14701428 is_reusable = True ,
1471- is_optional = True ,
1429+ is_optional = False ,
14721430 )
14731431 httpx_mock .add_response (
14741432 url = f"{ EMG_CONFIG .ena .portal_search_api } ?"
@@ -1480,7 +1438,7 @@ def test_prefect_analyse_rawreads_flow_no_functional(
14801438 f"&dataPortal=metagenome" ,
14811439 json = [{"study_accession" : study_accession }],
14821440 is_reusable = True ,
1483- is_optional = True ,
1441+ is_optional = False ,
14841442 )
14851443 httpx_mock .add_response (
14861444 url = f"{ EMG_CONFIG .ena .portal_search_api } ?"
@@ -1513,7 +1471,7 @@ def test_prefect_analyse_rawreads_flow_no_functional(
15131471 for i , run_acc in enumerate (all_results )
15141472 ],
15151473 is_reusable = True ,
1516- is_optional = True ,
1474+ is_optional = False ,
15171475 )
15181476
15191477 # Create fake results WITHOUT functional analysis
0 commit comments