Revision 201fcfad
Added by jahoti almost 2 years ago
- ID 201fcfadc87e21b0b10ecf3a2a9d114328a65ffb
- Parent c39c6b9e
test/misc_constants.py | ||
---|---|---|
43 | 43 |
|
44 | 44 |
# Use user-specified values instead where available |
45 | 45 |
try: |
46 |
with open(str(here.parent / 'testing.conf')) as f:
|
|
46 |
with open('testing.conf') as f:
|
|
47 | 47 |
option = f.readline() |
48 | 48 |
while ' ' in option: |
49 | 49 |
key, value = option[:-1].split(' ', maxsplit=1) |
... | ... | |
56 | 56 |
elif key == 'TEST_PORT': |
57 | 57 |
default_proxy_port = int(value) |
58 | 58 |
|
59 |
elif key == 'CERT_DIR': |
|
60 |
default_cert_dir = Path(value) |
|
61 |
|
|
59 | 62 |
else: |
60 | 63 |
raise KeyError(key) |
61 | 64 |
|
Also available in: Unified diff
Support tests outside the source directory
Explicitly use certs in the build directory, and tests in the source