Skip to content

Commit 243ca86

Browse files
committed
Use pytest-dependency to declare test chaining
Signed-off-by: Yann Dirson <[email protected]>
1 parent b9fe640 commit 243ca86

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"
@@ -228,6 +230,7 @@ def test_firstboot_821_uefi(self, create_vms):
228230
host_vm.export("test_firstboot_821_uefi-vm1.xva", "zstd",
229231
use_cache=CACHE_IMPORTED_VM)
230232

233+
@pytest.mark.dependency(depends=["TestNested::test_firstboot_821_uefi"])
231234
@pytest.mark.vm_definitions(
232235
dict(name="vm 1",
233236
image="test_firstboot_821_uefi-vm1.xva"

0 commit comments

Comments
 (0)