Skip to content

Commit

Permalink
changed checking db schema length in test_api.py
Browse files Browse the repository at this point in the history
instead of checking if the db schema is the exact same, I am checking if it has more than 30 fields

db schema is always changing so this test will break often, but it should have more than 30 fields because there are at least 24 nodes
  • Loading branch information
nh916 committed Jul 21, 2023
1 parent 0b35f3d commit 9356c21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ def test_get_db_schema_from_api(cript_api: cript.API) -> None:
assert bool(db_schema)
assert isinstance(db_schema, dict)

# TODO this is constantly changing, so we can't check it for now.
# total_fields_in_db_schema = 69
# assert len(db_schema["$defs"]) == total_fields_in_db_schema
# db schema should have at least 30 fields
assert len(db_schema["$defs"]) > 30


def test_is_node_schema_valid(cript_api: cript.API) -> None:
Expand Down

0 comments on commit 9356c21

Please sign in to comment.