bigquery-etl/pytest.ini

26 строки
991 B
INI
Исходник Обычный вид История

2019-03-07 23:43:21 +03:00
[pytest]
Add minimal set of tests for GLAM Fenix queries (#1488) * Add script to determine query dependencies * Add schemas and folders for minimal test * Add schema for geckoview_versions * Add query params to each query * Update schema for new queries * Remove main from bootstrap file * Add dataset prefix to schemas * Add failing test for clients_histogram_aggregates It turns out that the dependency resolution I'm using for autogenerate the schemas is ignoring the views. I actually want to keep the views around. The tables also all need to be prefixed with the dataset name or they won't be inserted into the sql query correctly. * Add successful test for clients histogram aggregates * Add minimal tests for clients_scalar_aggregates * Remove skeleton files for views (no test support for views) * Add tests for latest versions * Add tests for scalar bucket counts that passes * Add scalar bucket counts * Add test for scalar percentiles * Add test for histogram bucket counts * Add passing test for probe counts * Add test for histogram percentiles * Add tests for extract counts * Update readme * Add data for scalar percentiles test * Fix linting errors * Fix mypy issues with tests module * Name it data instead of tests.*.data * Ignore mypy on tests directory * Remove mypy section * Remove extra line in pytest * Try pytest invocation of mypy-scripts-are-modules * Run mypy outside of pytest * Use exec on pytest instead of mypy * Update tests/sql/glam-fenix-dev/glam_etl/bootstrap.py Co-authored-by: Ben Wu <benjaminwu124@gmail.com> * Update tests/sql/glam-fenix-dev/glam_etl/README.md Co-authored-by: Ben Wu <benjaminwu124@gmail.com> * Document bootstrap in documentation * Use artificial range for histogram_percentiles * Simplify parameters for scalar probe counts * Simplify tests for histogram probe counts * Add test for incremental histogram aggregates * Update scalar percentile counts to count distinct client ids * Update readme for creating a new test * Use unorded list for sublist * Use --ignore-glob for pytest to avoid data files Co-authored-by: Ben Wu <benjaminwu124@gmail.com>
2020-12-02 04:11:45 +03:00
addopts =
--strict-markers
--ignore-glob=tests/sql/glam-fenix-dev/glam_etl/*/data.py
--ignore-glob=tests/sql/glam-fenix-dev/glam_etl/*.py
2019-03-07 23:43:21 +03:00
filterwarnings =
# upstream lib imports ABC improperly for backward compatibility
ignore::DeprecationWarning:google.protobuf.descriptor
ignore::DeprecationWarning:google.protobuf.internal.well_known_types
# Silence: "Your application has authenticated using end user credentials from Google Cloud SDK"
ignore::UserWarning:google.auth
markers =
integration: mark tests that check integration with external services. Skipped when not specifically enabled.
java: mark tests that require java dependencies. Skipped when not specifically enabled and java is not available.
norecursedirs =
venv
script/legacy
testpaths =
bigquery_etl
tests
2020-09-30 23:00:57 +03:00
# todo: make this more generic to support other projects
sql/moz-fx-data-shared-prod/udf
sql/moz-fx-data-shared-prod/udf_js
sql/mozfun
script