-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that relative imports can be imported without requiring
./
i…
…n front of the import file name
- Loading branch information
1 parent
ad74966
commit c33c32d
Showing
8 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/test_utils/input/imports_relative/L0_0/L1_0_0/L2_0_0_2/four.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
id: four | ||
name: import_four | ||
title: Import Four | ||
description: | | ||
Import loaded by the StepChild class. | ||
imports: | ||
- linkml:types | ||
classes: | ||
Four: | ||
attributes: | ||
value: | ||
range: string | ||
ifabsent: "Four" |
14 changes: 14 additions & 0 deletions
14
tests/test_utils/input/imports_relative/L0_0/L1_0_0/L2_0_0_2/one.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
id: one | ||
name: import_one | ||
title: Import One | ||
description: | | ||
Import loaded by the StepChild class. | ||
imports: | ||
- linkml:types | ||
- two | ||
classes: | ||
One: | ||
attributes: | ||
value: | ||
range: string | ||
ifabsent: "One" |
16 changes: 16 additions & 0 deletions
16
tests/test_utils/input/imports_relative/L0_0/L1_0_0/L2_0_0_2/stepchild.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
id: stepchild | ||
name: stepchild | ||
title: stepchild | ||
description: | | ||
Child class that imports files in the same directory as itself without consistently using `./` in the link notation. | ||
imports: | ||
- linkml:types | ||
- one | ||
- two | ||
- ./three | ||
classes: | ||
StepChild: | ||
attributes: | ||
value: | ||
range: string | ||
ifabsent: "StepChild" |
14 changes: 14 additions & 0 deletions
14
tests/test_utils/input/imports_relative/L0_0/L1_0_0/L2_0_0_2/three.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
id: three | ||
name: import_three | ||
title: Import Three | ||
description: | | ||
Import loaded by the StepChild class. | ||
imports: | ||
- linkml:types | ||
- ./four | ||
classes: | ||
Three: | ||
attributes: | ||
value: | ||
range: string | ||
ifabsent: "Three" |
13 changes: 13 additions & 0 deletions
13
tests/test_utils/input/imports_relative/L0_0/L1_0_0/L2_0_0_2/two.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
id: two | ||
name: import_two | ||
title: Import Two | ||
description: | | ||
Import loaded by the StepChild class. | ||
imports: | ||
- linkml:types | ||
classes: | ||
Two: | ||
attributes: | ||
value: | ||
range: string | ||
ifabsent: "Two" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters