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 f198184
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/data/datatypes/test_tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_tabular_set_meta_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 == 0
Expand All @@ -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 f198184

Please sign in to comment.