avast / avast/pytest-docker

Utility to run arbitrary commands on a container

Open
#93 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
489
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Most projects need some kind of initialization. So far I am copy-pasting this kind of scripts all over the projects

```python
import pytest
import textwrap

@pytest.fixture(scope="session")
def backend_init(docker_services):

def backend_run(command):
docker_services._docker_compose.execute(
"run --rm backend " + textwrap.dedent(command))

backend_run("python -m django migrate")
backend_run("python -m django configure")
backend_run("""\
bash <

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.