mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-27 09:15: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
|
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")
|
@pytest.fixture(scope="class")
|
||||||
def erpnext_site(compose: Compose):
|
def erpnext_site(compose: Compose):
|
||||||
site_name = "test_erpnext_site"
|
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)
|
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:
|
class TestErpnext:
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
("url", "callback"),
|
("url", "callback"),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue