Skip to content

Commit

Permalink
add type ignores
Browse files Browse the repository at this point in the history
for mock
  • Loading branch information
bernt-matthias committed Feb 19, 2024
1 parent d90a101 commit 55aa354
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/data/datatypes/test_tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_tabular_set_meta_nearly_empty():
test_file.flush()
dataset = MockDataset(id=1)
dataset.set_file_name(test_file.name)
Tabular().set_meta(dataset)
Tabular().set_meta(dataset) # type: ignore [arg-type]
# data and comment lines are not stored if more than MAX_DATA_LINES
assert dataset.metadata.data_lines == 0
assert dataset.metadata.comment_lines == 1
Expand All @@ -77,7 +77,7 @@ def test_tabular_column_types():
test_file.flush()
dataset = MockDataset(id=1)
dataset.set_file_name(test_file.name)
Tabular().set_meta(dataset)
Tabular().set_meta(dataset) # type: ignore [arg-type]
# data and comment lines are not stored if more than MAX_DATA_LINES
assert dataset.metadata.data_lines == 2
assert dataset.metadata.comment_lines == 0
Expand All @@ -104,7 +104,7 @@ def test_tabular_column_types_override():
test_file.flush()
dataset = MockDataset(id=1)
dataset.set_file_name(test_file.name)
Tabular().set_meta(dataset)
Tabular().set_meta(dataset) # type: ignore [arg-type]
# data and comment lines are not stored if more than MAX_DATA_LINES
assert dataset.metadata.data_lines == 3
assert dataset.metadata.comment_lines == 0
Expand Down

0 comments on commit 55aa354

Please sign in to comment.