mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-28 01:25:08 +00:00
parent
ed5311473c
commit
af38c46717
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
from contextlib import suppress
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
@ -42,7 +43,11 @@ def compose(env_file: str):
|
||||||
|
|
||||||
@pytest.fixture(autouse=True, scope="session")
|
@pytest.fixture(autouse=True, scope="session")
|
||||||
def frappe_setup(compose: Compose):
|
def frappe_setup(compose: Compose):
|
||||||
compose.stop()
|
# Stop all containers in `test` project if they are running.
|
||||||
|
# We don't care if it fails.
|
||||||
|
with suppress(subprocess.CalledProcessError):
|
||||||
|
compose.stop()
|
||||||
|
|
||||||
compose("up", "-d", "--quiet-pull")
|
compose("up", "-d", "--quiet-pull")
|
||||||
yield
|
yield
|
||||||
compose.stop()
|
compose.stop()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue