Skip to content

Commit

Permalink
Update test_data_parsers.py (#641)
Browse files Browse the repository at this point in the history
Signed-off-by: Vignesh Skanda  <[email protected]>
  • Loading branch information
vignesh1507 authored Oct 15, 2024
1 parent 2e10082 commit 075ad7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_data_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{'fid': 'date', 'name': 'date', 'semanticType': 'nominal', 'analyticType': 'dimension'}
]
to_records_result = [{'name': 'padnas', 'count': 3, 'date': '2022-01-01'}]
to_records_no_kernrl_result = [{'name': 'padnas', 'count': 3, 'date': '2022-01-01'}]
to_records_no_kernel_result = [{'name': 'padnas', 'count': 3, 'date': '2022-01-01'}]


def test_data_parser_on_padnas():
Expand All @@ -32,7 +32,7 @@ def test_data_parser_on_padnas():
assert dataset_parser.raw_fields == raw_fields_result
assert dataset_parser.to_records(1) == to_records_result
dataset_parser = get_parser(df)
assert dataset_parser.to_records(1) == to_records_no_kernrl_result
assert dataset_parser.to_records(1) == to_records_no_kernel_result


def test_data_parser_on_polars():
Expand All @@ -42,7 +42,7 @@ def test_data_parser_on_polars():
assert dataset_parser.raw_fields == raw_fields_result
assert dataset_parser.to_records(1) == to_records_result
dataset_parser = get_parser(df)
assert dataset_parser.to_records(1) == to_records_no_kernrl_result
assert dataset_parser.to_records(1) == to_records_no_kernel_result


try:
Expand All @@ -54,7 +54,7 @@ def test_data_parser_on_modin():
assert dataset_parser.raw_fields == raw_fields_result
assert dataset_parser.to_records(1) == to_records_result
dataset_parser = get_parser(df)
assert dataset_parser.to_records(1) == to_records_no_kernrl_result
assert dataset_parser.to_records(1) == to_records_no_kernel_result
except ImportError:
pass

Expand Down

0 comments on commit 075ad7a

Please sign in to comment.