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}'}