Skip to content

Commit

Permalink
Add printouts to test_metadata_introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Nov 9, 2023
1 parent b469b8b commit b6251a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kcidb/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ def test_metadata_introduction(clean_database):
pre_metadata_schema = None
post_metadata_schema = None
for schema in client.get_schemas().items():
print("schema:", schema)
if schema[1] >= kcidb.io.schema.V4_3:
post_metadata_schema = schema
break
Expand All @@ -432,9 +433,11 @@ def test_metadata_introduction(clean_database):
# Oh, but it is, pylint: disable=unsubscriptable-object
if not pre_metadata_schema or schema[1] != pre_metadata_schema[1]:
pre_metadata_schema = schema
print("pre_metadata_schema:", pre_metadata_schema)
assert pre_metadata_schema
assert pre_metadata_schema[1] >= kcidb.io.schema.V4_1
assert post_metadata_schema
print("post_metadata_schema:", post_metadata_schema)

# Initialize the database with pre-metadata schema
client.init(pre_metadata_schema[0])
Expand Down

0 comments on commit b6251a5

Please sign in to comment.