comparison 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
comparison
equal deleted inserted replaced
4:d715f0c13c60 5:84dfd1a94926
1 r"""Common configuration for unittests.
2
3 Importing changes PYTHONPATH as a side-effect: be able to import data_schema
4
5 """
6
7 import sys
8 import os
9
10 import configmix.config
11
12
13 PROJECTDIR = os.path.abspath(os.path.join(
14 os.path.dirname(__file__), ".."))
15
16 FILEURI_PREFIX = "file:/tests/schemata/"
17
18
19 #
20 # Side effects
21 #
22
23 # Allow to import the vlobby package
24 sys.path.append(PROJECTDIR)
25
26 # Also synthesize a minimal configuration just valid for the unittests
27 config = configmix.config.Configuration(
28 projectdir=PROJECTDIR)