Skip to content

test implement - #20

Merged
enniolopes merged 4 commits into
mainfrom
izabely_normalizer2
Jun 4, 2026
Merged

test implement#20
enniolopes merged 4 commits into
mainfrom
izabely_normalizer2

Conversation

@IzaFerrari

Copy link
Copy Markdown
Collaborator

Refs #19

@IzaFerrari
IzaFerrari requested a review from enniolopes May 23, 2026 01:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds stricter unit-test assertions for models/damicore_normalizer output format, addressing Issue #19 by validating the normalized text-file content and the returned naming-convention metadata.

Changes:

  • Add a unit test asserting a representative generated .txt file does not include header column names.
  • Add a unit test asserting normalize_dataset returns the expected naming_convention string for the current fixture’s key columns.

Comment on lines +48 to +52
def test_output_file_has_no_header(contract: NormalizerInput) -> None:
result = normalize_dataset(contract)
output_dir = Path(result["output_directory_path"])
sample_file = output_dir / "80001_2000_00a04.txt"

Comment on lines +47 to +49
@pytest.mark.unit
def test_output_file_has_no_header(contract: NormalizerInput) -> None:
result = normalize_dataset(contract)
@enniolopes
enniolopes merged commit cf4bed2 into main Jun 4, 2026
8 checks passed
@enniolopes enniolopes linked an issue Jun 4, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add tests for normalizer output header and naming

3 participants