Initialize Article Data Manager project
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user