Skip to content

Commit

Permalink
TDD: restore insensitive-case test case: test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
amelie-rondot committed Feb 10, 2024
1 parent f14c48b commit a618b49
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/table/test_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ def test_missing_primary_key_label_with_shema_sync_issue_1633():
for error, type_expected in zip(errors, tc["types_errors_expected"]):
assert error.type == type_expected

# # Ignore header_case
# schema_descriptor = {
# "$schema": "https://frictionlessdata.io/schemas/table-schema.json",
# "fields": [{"name": "A", "constraints": {"required": True}}],
# "primaryKey": ["A"],
# }
# Ignore header_case
schema_descriptor = {
"$schema": "https://frictionlessdata.io/schemas/table-schema.json",
"fields": [{"name": "A", "constraints": {"required": True}}],
"primaryKey": ["A"],
}

# resource = TableResource(
# source=[["a"], ["foo"]],
# schema=Schema.from_descriptor(schema_descriptor),
# detector=frictionless.Detector(schema_sync=True),
# dialect=frictionless.Dialect(header_case=False),
# )
# report = frictionless.validate(resource)
# assert report.valid
resource = TableResource(
source=[["a"], ["foo"]],
schema=Schema.from_descriptor(schema_descriptor),
detector=frictionless.Detector(schema_sync=True),
dialect=frictionless.Dialect(header_case=False),
)
report = frictionless.validate(resource)
assert report.valid

0 comments on commit a618b49

Please sign in to comment.