Skip to content

Commit 77ec34c

Browse files
committed
Use pytest-dependency to declare test chaining
Signed-off-by: Yann Dirson <[email protected]>
1 parent 6b1d179 commit 77ec34c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/install/test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
CACHE_IMPORTED_VM = False
1515
assert CACHE_IMPORTED_VM in [True, False]
1616

17+
@pytest.mark.dependency()
1718
class TestNested:
1819
@pytest.mark.vm_definitions(
1920
dict(name="vm 1",
@@ -120,6 +121,7 @@ def test_install_821_uefi(self, iso_remaster, create_vms):
120121
host_vm.export("test_install_821_uefi-vm1.xva", "zstd",
121122
use_cache=CACHE_IMPORTED_VM)
122123

124+
@pytest.mark.dependency(depends=["TestNested::test_install_821_uefi"])
123125
@pytest.mark.vm_definitions(
124126
dict(name="vm 1",
125127
image="test_install_821_uefi-vm1.xva"
@@ -223,6 +225,7 @@ def test_firstboot_821_uefi(self, create_vms):
223225
host_vm.export("test_firstboot_821_uefi-vm1.xva", "zstd",
224226
use_cache=CACHE_IMPORTED_VM)
225227

228+
@pytest.mark.dependency(depends=["TestNested::test_firstboot_821_uefi"])
226229
@pytest.mark.vm_definitions(
227230
dict(name="vm 1",
228231
image="test_firstboot_821_uefi-vm1.xva"

0 commit comments

Comments
 (0)