Create test_schema.py
Browse files- tests/test_schema.py +11 -0
tests/test_schema.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from schemas import validate_results
|
| 2 |
+
|
| 3 |
+
def test_schema():
|
| 4 |
+
validate_results([
|
| 5 |
+
{
|
| 6 |
+
"document": "Test",
|
| 7 |
+
"agency": "CIA",
|
| 8 |
+
"year": 1999,
|
| 9 |
+
"excerpt": "Sample text"
|
| 10 |
+
}
|
| 11 |
+
])
|