ci: fix keep existing fixtures

This commit is contained in:
Revant Nandgaonkar 2022-12-28 11:35:19 +05:30
parent 0dca7c1fb4
commit 408c523cbc
2 changed files with 10 additions and 1 deletions

View file

@ -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"

View file

@ -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"),