Skip to content

Commit

Permalink
fix(test): Ignore thread number as it may not be 1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Feb 1, 2022
1 parent ca0a5c5 commit fccfa81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/operators/test_dbt_seed.py
Expand Up @@ -128,7 +128,7 @@ def test_dbt_seed_models_logging(profiles_file, dbt_project_file, seed_files, tm
assert sum((line_2 in line for line in lines)) == 1

# Check thread tags are not present (that would indicate we are running with debug flag)
thread_tag = "[info ] [Thread-1 ]"
thread_tag = "[info ] [Thread- ]"
assert any((thread_tag in line for line in lines)) is False

main_thread_tag = "[info ] [MainThread]"
Expand Down Expand Up @@ -165,7 +165,7 @@ def test_dbt_seed_models_debug_logging(

# Check for duplicate lines
line_1 = (
"[info ] [Thread-1 ]: 1 of 2 START seed file public.seed_1...................."
"]: 1 of 2 START seed file public.seed_1...................."
"........................ [RUN]"
)
assert sum((line_1 in line for line in lines)) == 1
Expand Down

0 comments on commit fccfa81

Please sign in to comment.