Skip to content

Commit

Permalink
Fix types in test to match model
Browse files Browse the repository at this point in the history
Somehow pydantic v1 did not notice.
  • Loading branch information
timj committed Jul 14, 2023
1 parent 6eeb67c commit 0bd4a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_obscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def test_config_errors(self):

def test_schema(self):
"""Check how obscore schema is constructed"""
config = ObsCoreConfig(obs_collection="", dataset_types=[], facility_name="FACILITY")
config = ObsCoreConfig(obs_collection="", dataset_types={}, facility_name="FACILITY")
schema = ObsCoreSchema(config, [])
table_spec = schema.table_spec
self.assertEqual(list(table_spec.fields.names), [col.name for col in _STATIC_COLUMNS])
Expand All @@ -271,7 +271,7 @@ def test_schema(self):
config = ObsCoreConfig(
obs_collection="",
extra_columns={"c1": 1, "c2": "string", "c3": {"template": "{calib_level}", "type": "float"}},
dataset_types=[],
dataset_types={},
facility_name="FACILITY",
)
schema = ObsCoreSchema(config, [])
Expand Down

0 comments on commit 0bd4a79

Please sign in to comment.