Fix sphinx config path
This commit is contained in:
parent
1e6ca3d372
commit
ed8b8fb846
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
@ -9,7 +9,6 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- release-v*
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
.vscode
|
||||
.pytest_cache
|
||||
build
|
||||
_build
|
||||
**.pyc
|
@ -2,10 +2,14 @@
|
||||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
||||
version: 2
|
||||
|
||||
build:
|
||||
os: ubuntu-20.04
|
||||
tools:
|
||||
python: "3.9"
|
||||
|
||||
sphinx:
|
||||
configuration: docs/conf.py
|
||||
configuration: docs/source/conf.py
|
||||
|
||||
python:
|
||||
version: 3.9
|
||||
install:
|
||||
- requirements: docs/requirements.txt
|
@ -1,2 +1,2 @@
|
||||
jschon<1
|
||||
pytest<7
|
||||
jschon~=0.7.0
|
||||
pytest~=6.0
|
@ -1,11 +1,10 @@
|
||||
import json
|
||||
from jschon.catalogue import jsonschema_2019_09
|
||||
from jschon.jsonschema import JSONSchema
|
||||
from jschon import create_catalog, JSONSchema
|
||||
|
||||
def test_that_the_schema_follows_the_metaschema():
|
||||
jsonschema_2019_09.initialize()
|
||||
catalog_2019_09 = create_catalog("2019-09", default=True)
|
||||
with open("schema.json") as file:
|
||||
raw = json.load(file)
|
||||
schema = JSONSchema(raw)
|
||||
schema = JSONSchema(raw, catalog=catalog_2019_09)
|
||||
schema.validate()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user