Skip to content

Commit 8767bae

Browse files
committed
Code cleanup.
1 parent fb2b00e commit 8767bae

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

tests/validators/test_validate_test_data.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from os.path import join
77
from pathlib import Path
88

9-
from jsonschema import Draft4Validator, FormatChecker, RefResolver
9+
from jsonschema import Draft4Validator, FormatChecker
1010
from referencing import Registry
1111
from referencing.jsonschema import DRAFT4
1212

@@ -382,12 +382,6 @@ def test_validate_testdata_sampleassayplan_qc_json(self):
382382
with open(os.path.join(utils.JSON_DATA_DIR, "create", "sampleassayplan_qc_test.json")) as test_case_fp:
383383
with open(os.path.join(self.v2_create_schemas_path, "sample_assay_plan_schema.json")) as fp:
384384
sample_assay_plan_schema = json.load(fp)
385-
# resolver = RefResolver('file://{}'.format(
386-
# os.path.join(self.v2_create_schemas_path,
387-
# 'sample_assay_plan_schema.json')),
388-
# sample_assay_plan_schema)
389-
# res_path = str(pathlib.Path("file://", self.v2_create_schemas_path, "sample_assay_plan_schema.json"))
390-
# resolver = RefResolver(res_path, sample_assay_plan_schema)
391385

392386
resources = []
393387
schemas_dir = Path("file://", self.v2_create_schemas_path)
@@ -403,7 +397,6 @@ def test_validate_testdata_sampleassayplan_qc_json(self):
403397
print(registry.contents(main_uri))
404398
schema_ref = {"$ref": main_uri, "$schema": "http://json-schema.org/draft-04/schema"}
405399

406-
# validator = Draft4Validator(sample_assay_plan_schema, resolver=resolver)
407400
validator = Draft4Validator(schema_ref, registry=registry, format_checker=FormatChecker())
408401
validator.validate(json.load(test_case_fp))
409402

0 commit comments

Comments
 (0)