Open Toilal opened 5 years ago
Can you justify why do you need this?
Python sources are lying in a src subdirectory, so pytest runs from this directory. but docker-compose.yml and .env file are in the root directory of the repository, so I need to pass cwd parameter to execute docker-compose (cwd='..').
Ok.
As I don't know when this'll be merged, maybe you can work around it by overwriting docker_compose_file
and maybe changing the paths in your compose files?
Thx. I actually use a fork installed with pip right from github, with both submitted pull requests.
May I ask you to resolve the conflicts? 🙏 Thanks!
This allow custom options be passed to underlying subprocess.check_output invocations, like cwd.
@pytest.fixture(scope='session') def docker_compose_subprocess_kwargs(): return {'cwd': '..'}