Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 15 additions & 17 deletions test/schemas/check_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"""
Created on Sat Apr 21 01:58:06 2018

@author: dcmckay

Test the schemas against the examples as a batch file.
Run as `python test_schemas.py'
"""
Expand All @@ -38,40 +36,40 @@
print(cur_file_path)

"""List the schemas and their examples."""
schema_tests.append({"schema": "backend_config_schema.json",
schema_tests.append({"schema": "backend_configuration_schema.json",
"examples": [
"backend_config_example_openpulse.json",
"backend_config_example_openqasm.json"
"backend_configuration_openpulse_example.json",
"backend_configuration_openqasm_example.json"
]})
schema_tests.append({"schema": "backend_props_schema.json",
schema_tests.append({"schema": "backend_properties_schema.json",
"examples": [
"backend_props_example.json"
"backend_properties_example.json"
]})
schema_tests.append({"schema": "backend_status_schema.json",
"examples": [
"backend_status_example.json"
]})
schema_tests.append({"schema": "default_pulse_config_schema.json",
schema_tests.append({"schema": "default_pulse_configuration_schema.json",
"examples": [
"default_pulse_config_example.json"
"default_pulse_configuration_example.json"
]})
schema_tests.append({"schema": "job_status_schema.json",
"examples": [
"job_status_example.json"
]})
schema_tests.append({"schema": "qobj_schema.json",
"examples": [
"qobj_example_openpulse.json",
"qobj_example_openqasm.json"
"qobj_openpulse_example.json",
"qobj_openqasm_example.json"
]})
schema_tests.append({"schema": "result_schema.json",
"examples": [
"result_example_openqasm.json",
"result_example_openpulse_lev0.json",
"result_example_openpulse_lev1.json",
"result_example_snapshots.json",
"result_example_statevector_simulator.json",
"result_example_unitary_simulator.json"
"result_openqasm_example.json",
"result_openpulse_level_0_example.json",
"result_openpulse_level_1_example.json",
"result_snapshots_example.json",
"result_statevector_simulator_example.json",
"result_unitary_simulator_example.json"
]})

"""Run through each schema."""
Expand Down