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

--help

-h

Show this help message and exit

--script SCRIPT [SCRIPT...]

-s SCRIPT [SCRIPT...]

Path to the file(s) containing test scripts to execute

--autocommit

Use autocommit, default: False

--database DB

--db DB

Path to a database connection parameters file, default: database.ini (in the working directory)

--connection CONNECTION

--connection_name CONNECTION

Section in the database connection parameters file

--table TABLE

-t TABLE

Name of the table to test, default: None

--verbose

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