From cf1e7129a744e2f4650b16a69ca8bd679d1b513e Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 2 Jun 2019 13:08:44 +0100 Subject: [PATCH] issue #590: add dummy package for new test. --- tests/data/module_finder/pkg_like_ansible/__init__.py | 0 .../module_finder/pkg_like_ansible/module_utils/__init__.py | 0 .../pkg_like_ansible/module_utils/distro/__init__.py | 5 +++++ .../pkg_like_ansible/module_utils/distro/_distro.py | 1 + 4 files changed, 6 insertions(+) create mode 100644 tests/data/module_finder/pkg_like_ansible/__init__.py create mode 100644 tests/data/module_finder/pkg_like_ansible/module_utils/__init__.py create mode 100644 tests/data/module_finder/pkg_like_ansible/module_utils/distro/__init__.py create mode 100644 tests/data/module_finder/pkg_like_ansible/module_utils/distro/_distro.py diff --git a/tests/data/module_finder/pkg_like_ansible/__init__.py b/tests/data/module_finder/pkg_like_ansible/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/data/module_finder/pkg_like_ansible/module_utils/__init__.py b/tests/data/module_finder/pkg_like_ansible/module_utils/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/data/module_finder/pkg_like_ansible/module_utils/distro/__init__.py b/tests/data/module_finder/pkg_like_ansible/module_utils/distro/__init__.py new file mode 100644 index 00000000..3a149657 --- /dev/null +++ b/tests/data/module_finder/pkg_like_ansible/module_utils/distro/__init__.py @@ -0,0 +1,5 @@ +# #590: a package that turns itself into a module. +I_AM = "the package that was replaced" +import sys +from pkg_like_ansible.module_utils.distro import _distro +sys.modules[__name__] = _distro diff --git a/tests/data/module_finder/pkg_like_ansible/module_utils/distro/_distro.py b/tests/data/module_finder/pkg_like_ansible/module_utils/distro/_distro.py new file mode 100644 index 00000000..9f113fef --- /dev/null +++ b/tests/data/module_finder/pkg_like_ansible/module_utils/distro/_distro.py @@ -0,0 +1 @@ +I_AM = "the module that replaced the package"