Skip to content

Commit

Permalink
Changed test should log error, it is expected.
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon committed Mar 1, 2024
1 parent ae186a0 commit e492256
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/converters/odbc/test_odbc_uplink_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def test_value_config(self):

def test_one_valid_one_invalid_configs(self):
config = ["unkownColumnValue", "stringValue"]
converted_data = self.converter.convert(config, self.db_data)
with self.assertLogs(level="ERROR") as log:
converted_data = self.converter.convert(config, self.db_data)
self.assertTrue(log.output, "Failed to convert SQL data to TB format: 'unkownColumnValue'")
self.assertDictEqual(converted_data, {config[1]: self.db_data[config[1]]})


Expand Down

0 comments on commit e492256

Please sign in to comment.