summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/cephadm/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pybind/mgr/cephadm/tests/conftest.py')
-rw-r--r--src/pybind/mgr/cephadm/tests/conftest.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pybind/mgr/cephadm/tests/conftest.py b/src/pybind/mgr/cephadm/tests/conftest.py
index e8add2c7b83..5cc2fabaf49 100644
--- a/src/pybind/mgr/cephadm/tests/conftest.py
+++ b/src/pybind/mgr/cephadm/tests/conftest.py
@@ -1,13 +1,14 @@
import pytest
from cephadm.services.osd import RemoveUtil, OSD
-from tests import mock
-
+from mock import mock
from .fixtures import with_cephadm_module
+from cephadm import CephadmOrchestrator
+from typing import Generator
@pytest.fixture()
-def cephadm_module():
+def cephadm_module() -> Generator[CephadmOrchestrator, None, None]:
with with_cephadm_module({}) as m:
yield m