13 lines
421 B
Python
13 lines
421 B
Python
from pathlib import Path
|
|
|
|
from article_data_manager.importers.csv_inspection import inspect_csv
|
|
|
|
|
|
def test_inspect_csv_detects_fixture_shape() -> None:
|
|
result = inspect_csv(Path("tests/fixtures/production-key-data.csv"))
|
|
|
|
assert result.delimiter == ","
|
|
assert result.row_count == 5
|
|
assert result.columns[:4] == ("SL_COMPANY_NO", "PHG", "PG", "SL_ITEM_NO")
|
|
assert "ROP_PRODUCT_WIDTH" in result.columns
|