We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a90c5f3 commit 1c386aaCopy full SHA for 1c386aa
frictionless/resources/__spec__/table/test_schema.py
@@ -293,6 +293,15 @@ def test_resource_schema_self_referencing_foreign_keys(test_case):
293
resource, test_case["expected_validity"], test_case["expected_errors"]
294
)
295
296
+ # Same test but with implicit self-reference
297
+ descriptor["schema"]["foreignKeys"][0]["reference"].pop("resource", None)
298
+
299
+ resource = TableResource.from_descriptor(descriptor)
300
301
+ _handle_expected_validity_and_errors(
302
+ resource, test_case["expected_validity"], test_case["expected_errors"]
303
+ )
304
305
306
@pytest.mark.parametrize(
307
"test_case",
0 commit comments