1
0
mirror of synced 2024-09-23 19:08:21 +02:00

Fix sphinx config path

This commit is contained in:
Stepland 2021-10-07 23:29:28 +02:00
parent 1e6ca3d372
commit ed8b8fb846
5 changed files with 13 additions and 10 deletions

View File

@ -9,7 +9,6 @@ on:
branches:
- master
- release-v*
workflow_dispatch:
jobs:
tests:

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
.vscode
.pytest_cache
build
_build
**.pyc
**.pyc

View File

@ -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

View File

@ -1,2 +1,2 @@
jschon<1
pytest<7
jschon~=0.7.0
pytest~=6.0

View File

@ -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()