@@ -140,7 +140,10 @@ def test_missing_interval_reference_dataset(
140
140
self .assertFalse (uvatwns_task .complete ())
141
141
142
142
@responses .activate
143
- @patch ('v03_pipeline.lib.tasks.write_new_variants_table.register_alleles_in_chunks' )
143
+ @patch (
144
+ 'v03_pipeline.lib.tasks.update_new_variants_with_caids.register_alleles_in_chunks' ,
145
+ )
146
+ @patch ('v03_pipeline.lib.tasks.update_new_variants_with_caids.Env' )
144
147
@patch ('v03_pipeline.lib.tasks.write_new_variants_table.Env' )
145
148
@patch (
146
149
'v03_pipeline.lib.tasks.write_new_variants_table.UpdateVariantAnnotationsTableWithUpdatedReferenceDataset' ,
@@ -160,7 +163,8 @@ def test_multiple_update_vat(
160
163
mock_vep : Mock ,
161
164
mock_standard_contigs : Mock ,
162
165
mock_update_vat_with_rd_task : Mock ,
163
- mock_env : Mock ,
166
+ mock_env_new_variants : Mock ,
167
+ mock_env_caids : Mock ,
164
168
mock_register_alleles : Mock ,
165
169
) -> None :
166
170
mock_update_vat_with_rd_task .return_value = (
@@ -174,9 +178,11 @@ def test_multiple_update_vat(
174
178
{'ENST00000327044' : 'NM_015658.4' },
175
179
)
176
180
# make register_alleles return CAIDs for 4 of 30 variants
177
- mock_env .GRCH38_TO_GRCH37_LIFTOVER_REF_PATH = GRCH38_TO_GRCH37_LIFTOVER_REF_PATH
178
- mock_env .CLINGEN_ALLELE_REGISTRY_LOGIN = 'login'
179
- mock_env .CLINGEN_ALLELE_REGISTRY_PASSWORD = 'password1' # noqa: S105
181
+ mock_env_new_variants .GRCH38_TO_GRCH37_LIFTOVER_REF_PATH = (
182
+ GRCH38_TO_GRCH37_LIFTOVER_REF_PATH
183
+ )
184
+ mock_env_caids .CLINGEN_ALLELE_REGISTRY_LOGIN = 'login'
185
+ mock_env_caids .CLINGEN_ALLELE_REGISTRY_PASSWORD = 'password1' # noqa: S105
180
186
mock_register_alleles .side_effect = [
181
187
iter (
182
188
[
@@ -543,7 +549,9 @@ def test_multiple_update_vat(
543
549
)
544
550
545
551
@responses .activate
546
- @patch ('v03_pipeline.lib.tasks.write_new_variants_table.register_alleles_in_chunks' )
552
+ @patch (
553
+ 'v03_pipeline.lib.tasks.update_new_variants_with_caids.register_alleles_in_chunks' ,
554
+ )
547
555
@patch (
548
556
'v03_pipeline.lib.tasks.write_new_variants_table.UpdateVariantAnnotationsTableWithUpdatedReferenceDataset' ,
549
557
)
@@ -698,7 +706,9 @@ def test_update_vat_grch37(
698
706
)
699
707
700
708
@responses .activate
701
- @patch ('v03_pipeline.lib.tasks.write_new_variants_table.register_alleles_in_chunks' )
709
+ @patch (
710
+ 'v03_pipeline.lib.tasks.update_new_variants_with_caids.register_alleles_in_chunks' ,
711
+ )
702
712
@patch (
703
713
'v03_pipeline.lib.tasks.write_new_variants_table.UpdateVariantAnnotationsTableWithUpdatedReferenceDataset' ,
704
714
)
@@ -771,7 +781,9 @@ def test_update_vat_without_accessing_private_datasets(
771
781
)
772
782
773
783
@responses .activate
774
- @patch ('v03_pipeline.lib.tasks.write_new_variants_table.register_alleles_in_chunks' )
784
+ @patch (
785
+ 'v03_pipeline.lib.tasks.update_new_variants_with_caids.register_alleles_in_chunks' ,
786
+ )
775
787
@patch (
776
788
'v03_pipeline.lib.tasks.write_new_variants_table.UpdateVariantAnnotationsTableWithUpdatedReferenceDataset' ,
777
789
)
0 commit comments