-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from smaht-dac/wrr_schema
Schema updates
- Loading branch information
Showing
13 changed files
with
282 additions
and
39 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "encoded" | ||
version = "0.0.5" | ||
version = "0.0.6" | ||
description = "SMaHT Data Analysis Portal" | ||
authors = ["4DN-DCIC Team <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -42,17 +42,15 @@ certifi = ">=2021.5.30" | |
chardet = "3.0.4" | ||
codeguru-profiler-agent = "^1.2.4" | ||
colorama = "0.3.3" | ||
dcicsnovault = "8.2.0.1b45" | ||
dcicutils = "7.5.1.1b0" | ||
encoded-core = "^0.0.2" | ||
dcicsnovault = "^10.0.0" | ||
dcicutils = "^7.7.0" | ||
encoded-core = "^0.0.3" | ||
elasticsearch = "7.13.4" | ||
execnet = "1.4.1" | ||
# html5lib = "0.9999999" | ||
humanfriendly = "^1.44.9" | ||
hupper = "1.5" | ||
idna = ">=2.10,<3" | ||
jmespath = "0.9.0" | ||
jsonschema_serialize_fork = "^2.1.1" | ||
loremipsum = "1.0.5" | ||
netaddr = ">=0.8.0,<1" | ||
openpyxl = "^3.0.7,!=3.0.8" # a version 3.0.8 appeared but then got withdrawn, for now just pin 3.0.7. try again later. | ||
|
@@ -77,7 +75,6 @@ pyramid-retry = "^1.0" | |
pyramid-tm = "^2.4" | ||
pyramid_translogger = "^0.1" | ||
python-dateutil = "^2.8.2" | ||
# python-magic is presently pinned to 0.4.15 in lockstep with dcicsnovault's requirements. See explanation there. | ||
python_magic = ">=0.4.24,<1" | ||
pytz = ">=2021.3" | ||
rdflib = "^4.2.2" | ||
|
@@ -88,12 +85,10 @@ requests = "^2.23.0" | |
rfc3986 = "^1.4.0" | ||
rsa = "3.3" | ||
rutter = ">=0.3,<1" | ||
# We don't use this directly. It's part of boto3. It slows down solving to pin. | ||
# s3transfer = ">=0.3.7,<0.4.0" | ||
sentry-sdk = "^1.5.6" | ||
simplejson = "^3.17.0" | ||
SPARQLWrapper = "^1.8.5" | ||
SQLAlchemy = "1.4.41" # Pinned because >=1.3.17 is broken for us (circular constraints prevent deletes) | ||
SQLAlchemy = "1.4.41" | ||
structlog = ">=19.2.0,<20" | ||
#submit4dn = "0.9.7" | ||
subprocess-middleware = "^0.3.0" | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import pytest | ||
from snovault.schema_utils import load_schema | ||
from .testing_views import TestingLinkedSchemaField | ||
|
||
|
||
class TestMergedSchemas: | ||
""" Class that contains tests that validate $merge refs are correctly resolved within repo | ||
and across repos | ||
""" | ||
|
||
@staticmethod | ||
def test_merged_schemas(): | ||
""" Checks that we can resolve multiple different schema $ref types """ | ||
schema = load_schema(TestingLinkedSchemaField.schema) | ||
props = schema['properties'] | ||
for key in ['access_key_id', 'file_format', 'title']: | ||
assert key in props | ||
# check access key id | ||
assert props['access_key_id']['comment'] == 'Only admins are allowed to set this value.' | ||
# check file_format | ||
assert props['file_format']['linkTo'] == 'FileFormat' | ||
# check title | ||
assert props['title']['description'] == 'A title for the Consortium.' |
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
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