Mercurial > hgrepos > Python > libs > data-schema
view tests/_config.py @ 31:271ec3abdfa3
Use "$type" as the schema's type specifier instead of "type".
THIS IS BACKWARDS INCOMPATIBLE.
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Tue, 18 Jul 2023 14:28:52 +0200 |
| parents | 84dfd1a94926 |
| children |
line wrap: on
line source
r"""Common configuration for unittests. Importing changes PYTHONPATH as a side-effect: be able to import data_schema """ import sys import os import configmix.config PROJECTDIR = os.path.abspath(os.path.join( os.path.dirname(__file__), "..")) FILEURI_PREFIX = "file:/tests/schemata/" # # Side effects # # Allow to import the vlobby package sys.path.append(PROJECTDIR) # Also synthesize a minimal configuration just valid for the unittests config = configmix.config.Configuration( projectdir=PROJECTDIR)
