Mercurial > hgrepos > Python > libs > ConfigMix
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/_test_context.py Thu Jan 13 11:39:38 2022 +0100 @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +r"""Automatic unittest context configuration + +""" + +import sys +import os + +sys.path.insert( + 0, + os.path.abspath( + os.path.normpath(os.path.join(os.path.dirname(__file__), "..")))) + + +TESTDATADIR = os.path.join( + os.path.abspath(os.path.dirname(__file__)), + "data")
