conftest.py 307 B

1234567891011
  1. import os
  2. import pytest
  3. @pytest.fixture(scope="session", autouse=True)
  4. def chdir_to_project_root():
  5. os.chdir('../..')
  6. print('\nChdir to project root dir')
  7. os.chmod('./tests/integration/assets/test.key', 0o600)
  8. print('Also, `chmod 600 tests/integration/assets/test.key` to make ssh happy')