Skip to content

Commit 65c90f6

Browse files
committed
Refactored test data to data directory
1 parent 605474d commit 65c90f6

9 files changed

+15
-3
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/data/glossary_term2.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"guid": "9c9a7a04-d738-48e8-b1d3-a491eb2bccf5",
3+
"typeName": "AtlasGlossaryTerm",
4+
"entityStatus": "ACTIVE",
5+
"displayText": "Active Subscriptions",
6+
"relationshipType": "AtlasGlossaryTermAnchor",
7+
"relationshipGuid": "8f425700-dc81-4638-a703-348b6010e949",
8+
"relationshipStatus": "ACTIVE",
9+
"relationshipAttributes": {
10+
"typeName": "AtlasGlossaryTermAnchor"
11+
}
12+
}
File renamed without changes.

tests/test_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
from pyatlan.model.assets import AtlasGlossary, AtlasGlossaryTerm, AtlasGlossaryCategory
88
from pyatlan.model.core import AssetResponse, AssetMutationResponse
99

10-
PARENT_DIR = Path(__file__).parent
10+
DATA_DIR = Path(__file__).parent / "data"
1111
GLOSSARY_JSON = 'glossary.json'
1212
GLOSSARY_TERM_JSON = "glossary_term.json"
1313
GLOSSARY_CATEGORY_JSON = "glossary_category.json"
1414

1515

1616
def load_json(filename):
17-
with (PARENT_DIR / filename).open() as input_file:
17+
with (DATA_DIR / filename).open() as input_file:
1818
return json.load(input_file)
1919

2020

tests/test_typedef_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import json
88

99
PARENT_DIR = Path(__file__).parent
10-
TYPEDEFS_JSON = PARENT_DIR / 'typedefs.json'
10+
TYPEDEFS_JSON = PARENT_DIR / 'data' / 'typedefs.json'
1111

1212
ENUM_DEF = {
1313
"category": "ENUM",

0 commit comments

Comments
 (0)