Skip to content

Commit

Permalink
coverage fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Feb 12, 2024
1 parent 33986bc commit eeb2bbb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/yt_napari/_gui_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,4 @@ def get_yt_metadata_container():

def _is_base_model_or_yt_obj(field_info: pydantic.fields.FieldInfo):
ftype = field_info.annotation
ispydy = isinstance(ftype, pydantic.BaseModel)
if ispydy:
return ispydy
return ftype in _data_model._data_model_list
2 changes: 1 addition & 1 deletion src/yt_napari/_tests/test_schema_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_expected(prefix, vstring):

# run again with defaults, should increment
expected_file = get_expected(pfx, "0.0.2")
m.write_new_schema("any old string")
m.write_new_schema({"or a": "dictionary"})
assert expected_file.is_file()

# test other increments
Expand Down

0 comments on commit eeb2bbb

Please sign in to comment.