Skip to content

Commit 73c96e0

Browse files
author
Everett Hildenbrandt
committed
test.py: enable checking GenesisTest Schemas
1 parent ce2531e commit 73c96e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test.py

+3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def validateSchema(testFile, schemaFile):
105105
}
106106

107107
testInput = readFile(testFile)
108+
jsonschema.validate(testInput, schema)
108109
try:
109110
jsonschema.validate(testInput, schema)
110111
except:
@@ -123,6 +124,8 @@ def validateTestFile(testFile):
123124
schemaFile = "JSONSchema/st-schema.json"
124125
elif testFile.startswith("./BlockchainTests/"):
125126
schemaFile = "JSONSchema/bc-schema.json"
127+
elif testFile.startswith("./GenesisTests/"):
128+
schemaFile = "JSONSchema/genesis-schema.json"
126129
else:
127130
_logerror("Do not know how to validate file:", testFile)
128131
return

0 commit comments

Comments
 (0)