|
19 | 19 |
|
20 | 20 | SCHEMA_NO_IMPORTS = Path(INPUT_DIR) / 'kitchen_sink_noimports.yaml' |
21 | 21 | SCHEMA_WITH_IMPORTS = Path(INPUT_DIR) / 'kitchen_sink.yaml' |
22 | | -SCHEMA_WITH_STRUCTURED_PATTERNS = Path(INPUT_DIR) / "pattern-example.yaml" |
| 22 | +SCHEMA_WITH_STRUCTURED_PATTERNS = Path(INPUT_DIR) / 'pattern-example.yaml' |
23 | 23 | SCHEMA_IMPORT_TREE = Path(INPUT_DIR) / 'imports' / 'main.yaml' |
24 | 24 | SCHEMA_RELATIVE_IMPORT_TREE = Path(INPUT_DIR) / 'imports_relative' / 'L0_0' / 'L1_0_0' / 'main.yaml' |
25 | 25 | SCHEMA_RELATIVE_IMPORT_TREE2 = Path(INPUT_DIR) / 'imports_relative' / 'L0_2' / 'main.yaml' |
@@ -357,7 +357,7 @@ def test_caching(): |
357 | 357 | view.add_class(ClassDefinition('X')) |
358 | 358 | assert len(['X']) == len(view.all_classes()) |
359 | 359 | view.add_class(ClassDefinition('Y')) |
360 | | - assert len(['X', 'Y']) == len(view.all_classes()) |
| 360 | + assert len(['X', 'Y']) == len(view.all_classes()) |
361 | 361 | # bypass view method and add directly to schema; |
362 | 362 | # in general this is not recommended as the cache will |
363 | 363 | # not be updated |
@@ -544,8 +544,13 @@ def test_imports_relative(): |
544 | 544 | '../../L0_1/L1_1_0/index', |
545 | 545 | '../../L0_1/cousin', |
546 | 546 | '../L1_0_1/dupe', |
547 | | - './L2_0_0_0/child', |
548 | | - './L2_0_0_1/child', |
| 547 | + 'L2_0_0_0/child', |
| 548 | + 'L2_0_0_1/child', |
| 549 | + 'L2_0_0_2/two', |
| 550 | + 'L2_0_0_2/one', |
| 551 | + 'L2_0_0_2/four', |
| 552 | + 'L2_0_0_2/three', |
| 553 | + 'L2_0_0_2/stepchild', |
549 | 554 | 'main' |
550 | 555 | ] |
551 | 556 |
|
@@ -716,6 +721,7 @@ def test_slot_inheritance(): |
716 | 721 | with pytest.raises(ValueError): |
717 | 722 | view.slot_ancestors('s5') |
718 | 723 |
|
| 724 | + |
719 | 725 | def test_attribute_inheritance(): |
720 | 726 | """ |
721 | 727 | Tests attribute inheritance edge cases. |
|
0 commit comments