Module trase.tools.data_release_package.validate.test.test_cli

Functions

def test_data_files_with_rows_pass(tmp_path, monkeypatch)

The checks that read S3, with the read itself stubbed out.

def test_empty_data_file_fails(tmp_path, monkeypatch)
def test_errors_when_path_is_not_a_directory(tmp_path)
def test_full_package_passes(tmp_path)
def test_metadata_must_be_a_json_array(tmp_path)
def test_minimal_package_passes(tmp_path)
def test_missing_required_file_fails(tmp_path)
def test_no_validation_reaches_s3_by_default(tmp_path)

The suite must stay local: nothing here should need AWS credentials.

def test_only_and_skip_are_respected(tmp_path)
def test_package_without_a_methodology_passes(tmp_path)

documentation/methodology.md is optional, so a package may omit it.

def test_pointer_file_must_be_a_single_s3_url(tmp_path)
def test_pointer_requires_its_paired_metadata(tmp_path)
def test_skip_s3_leaves_out_marked_validations(tmp_path, monkeypatch)
def test_skip_s3_still_runs_the_local_validations(tmp_path, monkeypatch)
def test_unexpected_top_level_entry_fails(tmp_path)
def test_unreadable_data_file_fails(tmp_path, monkeypatch)