diff options
author | jahoti <jahoti@tilde.team> | 2021-12-03 00:00:00 +0000 |
---|---|---|
committer | jahoti <jahoti@tilde.team> | 2021-12-03 00:00:00 +0000 |
commit | 201fcfadc87e21b0b10ecf3a2a9d114328a65ffb (patch) | |
tree | bf387ec1fd0ed046009c72a524c3de4c560ecb84 /test | |
parent | c39c6b9efc91a268cffa9eec397a79f7e294bf0a (diff) | |
download | browser-extension-jahoti.tar.gz browser-extension-jahoti.zip |
Support tests outside the source directoryjahoti
Explicitly use certs in the build directory, and tests in the source
Diffstat (limited to 'test')
-rw-r--r-- | test/misc_constants.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/misc_constants.py b/test/misc_constants.py index 3494293..add875d 100644 --- a/test/misc_constants.py +++ b/test/misc_constants.py @@ -43,7 +43,7 @@ default_cert_dir = here / 'certs' # Use user-specified values instead where available try: - with open(str(here.parent / 'testing.conf')) as f: + with open('testing.conf') as f: option = f.readline() while ' ' in option: key, value = option[:-1].split(' ', maxsplit=1) @@ -56,6 +56,9 @@ try: elif key == 'TEST_PORT': default_proxy_port = int(value) + elif key == 'CERT_DIR': + default_cert_dir = Path(value) + else: raise KeyError(key) |