Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
amofakhar committed Jul 17, 2024
1 parent 2d51fee commit b635dff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/units/cli/cli_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(
extra_log=False,
debug=False,
profiler=False,
force=False
):
self.target = target
self.tap = tap
Expand All @@ -34,6 +35,7 @@ def __init__(
self.extra_log = extra_log
self.debug = debug
self.profiler = profiler
self.force = False

# "log" Getters and setters
@property
Expand Down
7 changes: 4 additions & 3 deletions tests/units/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,10 @@ def test_filter_out_selected_tables(self):

actual_output = utils.filter_out_selected_tables(all_schema_tables, selected_tables)

self.assertListEqual(
actual_output, expected_output
)
self.assertEqual(len(actual_output), 2)

for item in expected_output:
self.assertIn(item, actual_output)

def test_get_schema_of_tables_set(self):
"""Test get_schema_of_mysql_tables method works correctly"""
Expand Down

0 comments on commit b635dff

Please sign in to comment.