Skip to content

Commit 4392a7c

Browse files
committed
more work
1 parent 133cdc0 commit 4392a7c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

server/tests/unit/transformers/test_base.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_normalize_condition(
101101
def test_normalize_therapeutic(
102102
transformer: Transformer, unnormalized_therapeutics: dict[str, Therapeutic]
103103
):
104-
# TODO maybe these need IDs added first?
104+
# TODO maybe these need IDs added first? we'll see if they pass
105105
result = transformer._normalize_therapeutic(
106106
unnormalized_therapeutics["moa_bosutinib"]
107107
)
@@ -137,6 +137,10 @@ def test_normalize_therapeutic(
137137
)
138138

139139

140-
def test_build_aggregate_statement(transformer: Transformer):
140+
@pytest.mark.asyncio
141+
async def test_build_aggregate_statement(transformer: Transformer):
141142
# maybe one for each type of statement
142-
pass
143+
statement = None # TODO
144+
result = await transformer._build_aggregated_diag_statement(statement)
145+
assert result is not None
146+
assert result.id == "metakb.assertion:"

server/tests/unit/transformers/test_civic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ def test_normalize_variant():
77

88
@pytest.mark.ci_ok
99
def test_civic_claim_to_statement():
10-
# TODO find something that fails each error case
10+
# TODO construct a case for each kind of valid input
11+
# TODO esp find something that fails each error case
1112
pass
1213

1314

0 commit comments

Comments
 (0)