From d15ee60ca7ad62004c5e036203f095cc27660f90 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Sun, 10 Apr 2022 22:21:41 +0200 Subject: Introduce a new macro (%p) representing the parent value of a given key --- tests/conftest.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'tests/conftest.py') diff --git a/tests/conftest.py b/tests/conftest.py index 0770adb..5dcc456 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -30,17 +30,16 @@ def config_data(): ) }, 'instances': { - 'default': {'ETOOLKIT_PROMPT': '(%i)'}, + '_default': { + 'ETOOLKIT_PROMPT': '(%i)', + 'PYTHONPATH': '/home/foo/%i/python', + }, 'dev': { - 'ETOOLKIT_PARENT': 'default', - 'PYTHONPATH': ':/home/user/.pythonpath', - 'DB_CONNECTION': ( - 'enc-val$1$Y/TBb1F3siHTw6qZg9ERzZfA8PLPf2CwGSQLpu9jYWw=$FT' - '5tS9o+ABvsxogIXpJim16Gz5SVtV8=' - ), + 'ETOOLKIT_PARENT': '_default', + 'PYTHONPATH': '%p:/home/user/%i/.pythonpath', }, 'secret': { - 'ETOOLKIT_PARENT': 'default', + 'ETOOLKIT_PARENT': '_default', 'ETOOLKIT_SENSITIVE': ['PASSWORD'], 'GNUPGHOME': '%h/private/.gnupg', 'PASSWORD': ( -- cgit v1.3