Skip to content

Commit

Permalink
debug 3
Browse files Browse the repository at this point in the history
  • Loading branch information
amofakhar committed Jul 18, 2024
1 parent 37d853a commit 00444fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ def _create_ppw_config_file(table_mb):
config_file.write('allowed_resync_max_size:\n')
config_file.write(f' table_mb: {table_mb}\n')

tasks.run_command(f'pipelinewise import_config --dir {TEST_PROJECTS_DIR_PATH}')
[return_code, stdout, stderr] = tasks.run_command(f'pipelinewise import_config --dir {TEST_PROJECTS_DIR_PATH}')
print(stdout)
print(stderr)
assert return_code == 0


class TestResyncMariaDBToSF(TapMariaDB):
Expand All @@ -41,8 +44,8 @@ def test_resync_mariadb_to_sf_if_table_size_greater_than_limit(self): # pylint:

with open(f'{CONFIG_DIR}/config.json', 'r', encoding='utf-8') as config_file:
aa = config_file.readlines()
for ii in aa:
print(ii)
for line in aa:
print(line)


assert return_code == 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ def _create_ppw_config_file(table_mb):
config_file.write('allowed_resync_max_size:\n')
config_file.write(f' table_mb: {table_mb}\n')

tasks.run_command(f'pipelinewise import_config --dir {TEST_PROJECTS_DIR_PATH}')
[return_code, stdout, stderr] = tasks.run_command(f'pipelinewise import_config --dir {TEST_PROJECTS_DIR_PATH}')
print(stdout)
print(stderr)
assert return_code == 0


class TestResyncPGToSF(TapPostgres):
Expand All @@ -40,8 +43,8 @@ def test_resync_pg_to_sf_if_table_size_greater_than_limit(self): # pylint: dis
[return_code, _, _] = tasks.run_command(command)
with open(f'{CONFIG_DIR}/config.json', 'r', encoding='utf-8') as config_file:
aa = config_file.readlines()
for ii in aa:
print(ii)
for line in aa:
print(line)

assert return_code == 1

Expand Down

0 comments on commit 00444fc

Please sign in to comment.