Configuration

Configuration Flags

usage: amlaidatatests [-h] [--conf CONF] [--id ID] --connection_string
                      CONNECTION_STRING [--schema_version SCHEMA_VERSION]
                      [--table_name_template TABLE_NAME_TEMPLATE]
                      [--database DATABASE] [--dry_run DRY_RUN]
                      [--log_sql_path LOG_SQL_PATH] [--scale SCALE]
                      [--interval_end_date INTERVAL_END_DATE]
                      [--testing_mode TESTING_MODE] [-v] [--pytest-help]
                      [--show-sql]

Named Arguments

--conf

[OPTIONAL] A YAML file from which to load options

--id

Unique identifier for a set of associated tables

--connection_string

The ibis connection string

Default: <dataclasses._MISSING_TYPE object at 0x7e9723f74690>

--schema_version

The version of the AML AI schema

Default: 'v1'

--table_name_template

Template for building table path. Defaults to <table> if id is not set, otherwise <table>_<id>

Default: '\${table}_\${id}'

--database

For bigquery, the dataset being used

Default: '${infer_database:${connection_string}}'

--dry_run

If set, do not execute

Default: False

--log_sql_path

If set, log the SQL generated to a path

--scale

Scale changes to modify profiling tests based on absolute values

Default: 1.0

--interval_end_date

The last date of the interval. Defaults to today.

Default: <dataclasses._MISSING_TYPE object at 0x7e9723f74690>

--testing_mode

Default: False

-v, --version

Show program’s version number and exit.

--pytest-help

Print extra additional flags from pytest and exit

Default: False

--show-sql

Show SQL for errors/warnings

Default: False

Useful Pytest Options

amlaidatatests uses pytest to manage and run tests. This has a number of advantages, particularly allowing the use of a wide variety of pytest plugins.

To view all available pytest configuration values, run amlaidatatests --pytest-help, or review the pytest documentation.

-k

The pytest keyword option allows filtering tests to run. For example -k transaction_table and primary_key will run only tests with those keywords.