bigquery-etl/conftest.py

17 строки
482 B
Python

"""PyTest configuration."""
pytest_plugins = [
"bigquery_etl.pytest_plugin.sql",
"bigquery_etl.pytest_plugin.udf",
"bigquery_etl.pytest_plugin.script_lint.black",
"bigquery_etl.pytest_plugin.script_lint.docstyle",
"bigquery_etl.pytest_plugin.script_lint.flake8",
"bigquery_etl.pytest_plugin.script_lint.mypy",
]
def pytest_configure():
"""Generate SQL files before running tests."""
with open("script/generate_sql") as fp:
exec(fp.read())