diff --git a/tests/conftest.py b/tests/conftest.py index 4cc67726..6185eabc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -65,6 +65,15 @@ def frappe_site(compose: Compose): yield site_name +@pytest.fixture(scope="class") +def erpnext_setup(compose: Compose): + compose.stop() + compose("up", "-d", "--quiet-pull") + + yield + compose.stop() + + @pytest.fixture(scope="class") def erpnext_site(compose: Compose): site_name = "test_erpnext_site" diff --git a/tests/test_frappe_docker.py b/tests/test_frappe_docker.py index 98e8a4c5..176fd194 100644 --- a/tests/test_frappe_docker.py +++ b/tests/test_frappe_docker.py @@ -134,7 +134,7 @@ def test_https(frappe_site: str, compose: Compose): check_url_content(url="https://127.0.0.1", callback=index_cb, site_name=frappe_site) -@pytest.mark.usefixtures("frappe_setup") +@pytest.mark.usefixtures("erpnext_setup") class TestErpnext: @pytest.mark.parametrize( ("url", "callback"),