From 888addc4680ea8fb6c9f2c88c418c53e910a2ba9 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 11 Jun 2020 09:53:04 +0200 Subject: [PATCH] pybind/mgr: move test_orchestrator to orchestrator module Signed-off-by: Sebastian Wagner --- src/pybind/mgr/orchestrator/__init__.py | 4 ++++ src/pybind/mgr/orchestrator/tests/__init__.py | 0 src/pybind/mgr/{ => orchestrator}/tests/test_orchestrator.py | 0 3 files changed, 4 insertions(+) create mode 100644 src/pybind/mgr/orchestrator/tests/__init__.py rename src/pybind/mgr/{ => orchestrator}/tests/test_orchestrator.py (100%) diff --git a/src/pybind/mgr/orchestrator/__init__.py b/src/pybind/mgr/orchestrator/__init__.py index c8522e78590..fa32bc4850d 100644 --- a/src/pybind/mgr/orchestrator/__init__.py +++ b/src/pybind/mgr/orchestrator/__init__.py @@ -1,4 +1,8 @@ from __future__ import absolute_import +import os + +if 'UNITTEST' in os.environ: + import tests from .module import OrchestratorCli diff --git a/src/pybind/mgr/orchestrator/tests/__init__.py b/src/pybind/mgr/orchestrator/tests/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/pybind/mgr/tests/test_orchestrator.py b/src/pybind/mgr/orchestrator/tests/test_orchestrator.py similarity index 100% rename from src/pybind/mgr/tests/test_orchestrator.py rename to src/pybind/mgr/orchestrator/tests/test_orchestrator.py -- 2.39.5