Skip to content

check_source_directories

This check identifies instances where a source is not defined in the expected directory.

Version History

Added in Debby v0.3.0

Parameters

This check does not support any custom parameters.

Info

For more information about how to set custom parameters for a check, see the documentation on configuration.

Source

def check(source: dict):
    source_name = source["source_name"]
    expected_directory = os.path.join("models", "staging", source_name)
    assert source["original_file_path"].startswith(expected_directory)