Skip to content

Commit

Permalink
add test of props
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Mar 18, 2024
1 parent 98ed5b6 commit 7ecbe96
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/integration_tests/test_bigquery_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ def source_faker_seed_b() -> ab.Source:
return source


def test_bigquery_props(
new_bigquery_cache: ab.BigQueryCache,
) -> None:
"""Test that the BigQueryCache properties are set correctly."""
# assert new_bigquery_cache.credentials_path.endswith(".json")
assert new_bigquery_cache.dataset_name == new_bigquery_cache.schema_name, \
"Dataset name should be the same as schema name."
assert new_bigquery_cache.schema_name != "airbyte_raw" \
"Schema name should not be the default value."

assert new_bigquery_cache.get_database_name() == new_bigquery_cache.project_name, \
"Database name should be the same as project name."


# Uncomment this line if you want to see performance trace logs.
# You can render perf traces using the viztracer CLI or the VS Code VizTracer Extension.
#@viztracer.trace_and_save(output_dir=".pytest_cache/snowflake_trace/")
Expand Down

0 comments on commit 7ecbe96

Please sign in to comment.