Skip to content

Commit

Permalink
Re-order imports
Browse files Browse the repository at this point in the history
  • Loading branch information
george42-ctds committed Jan 9, 2025
1 parent af74846 commit 61985c2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gdcdictionary/schema_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
import json
import os
import unittest
import yaml

from jsonschema import validate, ValidationError

import yaml
from gdcdictionary import gdcdictionary
from jsonschema import validate, ValidationError


def load_yaml_schema(path):
Expand Down Expand Up @@ -219,7 +218,7 @@ def add_system_props(self, doc):
validate_entity(entity, dictionary.schema)
else:
raise ValidationError("Invalid json")
except ValidationError as e:
except ValidationError:
print("Invalid as expected.")
else:
raise ValueError("Expected invalid, but validated.")
Expand Down

0 comments on commit 61985c2

Please sign in to comment.