Tweak the tests

This commit is contained in:
Thomas Sileo 2018-05-30 22:36:04 +02:00
parent 69a5ceb455
commit d2be270ccb
2 changed files with 2 additions and 1 deletions

View file

@ -24,5 +24,6 @@ script:
# Integration tests first # Integration tests first
- python -m pytest -v --ignore data -k integration - python -m pytest -v --ignore data -k integration
# Federation tests (with two local instances) # Federation tests (with two local instances)
- ls -lR tests
- python -m pytest -v -s --ignore data -k federation - python -m pytest -v -s --ignore data -k federation
- docker logs instance1_web_1 - docker logs instance1_web_1

View file

@ -19,7 +19,7 @@ class Instance(object):
self.docker_url = docker_url or host_url self.docker_url = docker_url or host_url
self.session = requests.Session() self.session = requests.Session()
self._create_delay = 10 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() api_key = f.read()
self._auth_headers = {'Authorization': f'Bearer {api_key}'} self._auth_headers = {'Authorization': f'Bearer {api_key}'}