def test__missing_schemaHeader(valid_input): valid_input.pop("braketSchemaHeader") DwaveDeviceCapabilities.parse_raw_schema(json.dumps(valid_input))
def test_missing_qubitCount(valid_input): valid_input.pop("provider") DwaveDeviceCapabilities.parse_raw_schema(json.dumps(valid_input))
def test_valid(valid_input): result = DwaveDeviceCapabilities.parse_raw_schema(json.dumps(valid_input)) assert result.provider.qubitCount == 1