Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
srmnitc committed Apr 29, 2024
1 parent 6dd0fa4 commit f8375e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,10 @@ def test_sparql_query():
res = kg.query(query)
assert res.symbol.values[0].toPython() == 'Pm-3m'

res = kg.query_sample(kg.ontology.terms.cmso.hasAltName,
condition=(kg.ontology.terms.cmso.hasAltName=='bcc'))
res = kg.query_sample(kg.ontology.terms.cmso.hasAltName=='bcc')
assert res.hasAltNamevalue.values[0].toPython() == 'bcc'

res = kg.query_sample(kg.ontology.terms.cmso.hasAltName,
condition=(kg.ontology.terms.cmso.hasAltName=='bcc'),
res = kg.query_sample(kg.ontology.terms.cmso.hasAltName=='bcc',
enforce_types=True)
assert res.hasAltNamevalue.values[0].toPython() == 'bcc'

Expand Down

0 comments on commit f8375e2

Please sign in to comment.