Skip to content

Commit

Permalink
Move assert out of for-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Feb 24, 2025
1 parent 9affb18 commit 42643c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/assessment/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ def test_running_real_assessment_job(
assert actual_tables == expected_tables

query = f"SELECT * FROM {installation_ctx.inventory_database}.workflow_problems"
for row in sql_backend.fetch(query):
assert row['path'] != 'UNKNOWN'
workflow_problems_without_path = [problem for problem in sql_backend.fetch(query) if problem["path"] == "UNKNOWN"]
assert not workflow_problems_without_path

0 comments on commit 42643c0

Please sign in to comment.