From d2be270ccbf7bc1f16d6ab13ebaa70a489f26a4c Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 30 May 2018 22:36:04 +0200 Subject: [PATCH] Tweak the tests --- .travis.yml | 1 + tests/federation_test.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 117f6f2..60dd487 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,5 +24,6 @@ script: # Integration tests first - python -m pytest -v --ignore data -k integration # Federation tests (with two local instances) + - ls -lR tests - python -m pytest -v -s --ignore data -k federation - docker logs instance1_web_1 diff --git a/tests/federation_test.py b/tests/federation_test.py index 12ead00..053b6ec 100644 --- a/tests/federation_test.py +++ b/tests/federation_test.py @@ -19,7 +19,7 @@ class Instance(object): self.docker_url = docker_url or host_url self.session = requests.Session() self._create_delay = 10 - with open(f'tests/fixtures/{name}/config/admin_api_key.key') as f: + with open(os.path.join(os.path.abspath(__file__), f'fixtures/{name}/config/admin_api_key.key')) as f: api_key = f.read() self._auth_headers = {'Authorization': f'Bearer {api_key}'}