-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d377d78
commit 53a8a93
Showing
3 changed files
with
10 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
import fastjsonschema | ||
import pytest | ||
|
||
|
||
def test_empty(schema, empty): | ||
validator = fastjsonschema.compile(schema) | ||
def test_empty(validator, empty): | ||
with pytest.raises(ValueError): | ||
validator(empty) | ||
|
||
|
||
def test_bad_top_level_field(schema, bad_top_level_field): | ||
validator = fastjsonschema.compile(schema) | ||
def test_bad_top_level_field(validator, bad_top_level_field): | ||
with pytest.raises(ValueError): | ||
validator(bad_top_level_field) | ||
|
||
|
||
def test_metadata_as_list(schema, metadata_as_list): | ||
validator = fastjsonschema.compile(schema) | ||
def test_metadata_as_list(validator, metadata_as_list): | ||
with pytest.raises(ValueError): | ||
validator(metadata_as_list) | ||
|
||
|
||
def test_empty_hypergraph(schema, empty_hypergraph): | ||
validator = fastjsonschema.compile(schema) | ||
def test_empty_hypergraph(validator, empty_hypergraph): | ||
validator(empty_hypergraph) |