Utility to generate test queries
Usage
python -m dorieh.platform.dbt.dbt_runner [-h] --script SCRIPT [SCRIPT ...]
[--autocommit] [--db DB] [--connection CONNECTION]
[--verbose] [--table TABLE]
Options:
Option |
Alias |
Description |
---|---|---|
|
|
Show this help message and exit |
|
|
Path to the file(s) containing test scripts to execute |
|
Use autocommit, default: False |
|
|
|
Path to a database connection parameters file, default: database.ini (in the working directory) |
|
|
Section in the database connection parameters file |
|
|
Name of the table to test, default: None |
|
Verbose output, default: False |
Details
.. py:module:: dorieh.platform.dbt.dbt_runner
A utility that executes test cases generated by dorieh.platform.dbt.create_test.py
tool.
.. py:exception:: TestFailedError :module: dorieh.platform.dbt.dbt_runner
.. py:class:: DBTRunner(context: ~typing.Optional[~dorieh.platform.dbt.dbt_config.DBTConfig] = None) :module: dorieh.platform.dbt.dbt_runner
.. py:method:: DBTRunner.reset() :module: dorieh.platform.dbt.dbt_runner
.. py:method:: DBTRunner.run() :module: dorieh.platform.dbt.dbt_runner
.. py:method:: DBTRunner.run_script(script, cnxn) :module: dorieh.platform.dbt.dbt_runner
.. py:method:: DBTRunner.report_row(row: ~typing.List, lengths: ~typing.List[int]) -> str :module: dorieh.platform.dbt.dbt_runner :classmethod:
.. py:method:: DBTRunner.test() :module: dorieh.platform.dbt.dbt_runner