mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 09:05:10 +00:00
ci: fix keep existing fixtures
This commit is contained in:
parent
0dca7c1fb4
commit
408c523cbc
2 changed files with 10 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue