Skip to content

Commit 074c863

Browse files
committed
Make Worker Variants Fully Qualified for Accession Tests
1 parent cca72cc commit 074c863

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

tests/worker/data/counts_acc.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
hgvs_nt,c_0,c_1
2-
c.1G>C,10,20
3-
c.2A>G,8,8
4-
c.6C>A,90,2
2+
NM_001637.3:c.1G>C,10,20
3+
NM_001637.3:c.2A>G,8,8
4+
NM_001637.3:c.6C>A,90,2

tests/worker/data/scores_acc.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
hgvs_nt,score
2-
c.1G>C,0.3
3-
c.2A>G,0.0
4-
c.6C>A,-1.65
2+
NM_001637.3:c.1G>C,0.3
3+
NM_001637.3:c.2A>G,0.0
4+
NM_001637.3:c.6C>A,-1.65

tests/worker/test_jobs.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
TEST_MINIMAL_EXPERIMENT,
3636
TEST_MINIMAL_SEQ_SCORESET,
3737
TEST_VARIANT_MAPPING_SCAFFOLD,
38+
VALID_ACCESSION,
3839
)
3940

4041

@@ -130,8 +131,10 @@ async def test_create_variants_for_score_set_with_validation_error(
130131
):
131132
score_set_urn, scores, counts = await setup_records_and_files(async_client, data_files, input_score_set)
132133

133-
# This is invalid for both data sets.
134-
scores.loc[:, HGVS_NT_COLUMN].iloc[0] = "c.1T>A"
134+
if input_score_set == TEST_MINIMAL_SEQ_SCORESET:
135+
scores.loc[:, HGVS_NT_COLUMN].iloc[0] = "c.1T>A"
136+
else:
137+
scores.loc[:, HGVS_NT_COLUMN].iloc[0] = f"{VALID_ACCESSION}:c.1T>A"
135138

136139
with (
137140
patch.object(

0 commit comments

Comments
 (0)