comparison tests/_test_context.py @ 619:75ecbe07abff

Introduct a test context to more easily switch between some unittest configurations
author Franz Glasner <f.glasner@feldmann-mg.com>
date Thu, 13 Jan 2022 11:39:38 +0100
parents
children
comparison
equal deleted inserted replaced
618:8dc514bd3d5e 619:75ecbe07abff
1 # -*- coding: utf-8 -*-
2 r"""Automatic unittest context configuration
3
4 """
5
6 import sys
7 import os
8
9 sys.path.insert(
10 0,
11 os.path.abspath(
12 os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))))
13
14
15 TESTDATADIR = os.path.join(
16 os.path.abspath(os.path.dirname(__file__)),
17 "data")