Mercurial > hgrepos > Python > libs > data-schema
diff tests/_config.py @ 5:84dfd1a94926
Add the existing implementation.
All tests work.
The documentation as text file is included also.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 06 Jul 2023 23:41:41 +0200 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/_config.py Thu Jul 06 23:41:41 2023 +0200 @@ -0,0 +1,28 @@ +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)
