Skip to content

Commit

Permalink
testing cleaner if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinnnyshinshin committed Aug 12, 2021
1 parent 3580cf4 commit 7a06de4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_definitions/test_expectations_cfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ def pytest_generate_tests(metafunc):
"bigquery" in test["only_for"]
and BigQueryDialect is not None
and hasattr(
validator_with_data.execution_engine.active_batch_data.sql_engine_dialect.BigQueryDialect
validator_with_data.execution_engine.active_batch_data.sql_engine_dialect,
"BigQueryDialect",
),
):
generate_test = True
Expand Down Expand Up @@ -245,7 +246,8 @@ def pytest_generate_tests(metafunc):
SqlAlchemyBatchData,
)
and hasattr(
validator_with_data.execution_engine.active_batch_data.sql_engine_dialect.BigQueryDialect
validator_with_data.execution_engine.active_batch_data.sql_engine_dialect,
"BigQueryDialect",
)
)
or (
Expand Down

0 comments on commit 7a06de4

Please sign in to comment.