Skip to content

Commit

Permalink
Add no-op to count tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Dec 2, 2024
1 parent adc6af2 commit e1969eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/functional/adapter/concurrency/test_concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def models(self):
}


class TestConcurenncy(BaseConcurrency):
class TestConcurrency(BaseConcurrency):
def test_concurrency(self, project):
run_dbt(["seed", "--select", "seed"])
results = run_dbt(["run"], expect_pass=False)
Expand All @@ -327,4 +327,4 @@ def test_concurrency(self, project):
check_table_does_not_exist(project.adapter, "invalid")
check_table_does_not_exist(project.adapter, "skip")

assert "PASS=5 WARN=0 ERROR=1 SKIP=1 TOTAL=7" in output
assert "PASS=5 WARN=0 ERROR=1 SKIP=1 NO-OP=0 TOTAL=7" in output
6 changes: 3 additions & 3 deletions tests/functional/adapter/hooks/test_on_run_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def models(self):

@pytest.fixture(scope="class")
def log_counts(self):
return "PASS=2 WARN=0 ERROR=2 SKIP=1 TOTAL=5"
return "PASS=2 WARN=0 ERROR=2 SKIP=1 NO-OP=0 TOTAL=5"

@pytest.fixture(scope="class")
def my_model_run_status(self):
Expand Down Expand Up @@ -90,7 +90,7 @@ def flags(self):

@pytest.fixture(scope="class")
def log_counts(self):
return "PASS=2 WARN=0 ERROR=1 SKIP=2 TOTAL=5"
return "PASS=2 WARN=0 ERROR=1 SKIP=2 NO-OP=0 TOTAL=5"

@pytest.fixture(scope="class")
def my_model_run_status(self):
Expand Down Expand Up @@ -125,7 +125,7 @@ def test_results(self, project):
]

assert [(result.node.unique_id, result.status) for result in results] == expected_results
assert "PASS=3 WARN=0 ERROR=1 SKIP=1 TOTAL=5" in log_output
assert "PASS=3 WARN=0 ERROR=1 SKIP=1 NO-OP=0 TOTAL=5" in log_output
assert "4 project hooks, 1 view model" in log_output

run_results = get_artifact(project.project_root, "target", "run_results.json")
Expand Down

0 comments on commit e1969eb

Please sign in to comment.