diff --git a/tests/integration/test_k8s.py b/tests/integration/test_k8s.py index 11d72ccc..4c0c883f 100644 --- a/tests/integration/test_k8s.py +++ b/tests/integration/test_k8s.py @@ -7,6 +7,7 @@ import asyncio import logging +import pytest_asyncio from pathlib import Path import pytest @@ -139,7 +140,7 @@ async def test_remove_leader_control_plane(kubernetes_cluster: model.Model): await ready_nodes(follower, expected_nodes) -@pytest.fixture +@pytest_asyncio.fixture() async def override_snap_on_k8s(kubernetes_cluster: model.Model, request): """ Override the snap resource on a Kubernetes cluster application and revert it after the test.