From 8038cdd128a5242eaee7ccb42319ff1c7781b467 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Thu, 19 Sep 2024 23:28:09 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20initial=20API=20entry=20point?= =?UTF-8?q?=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is not an `__init__.py` because it is meant to be imported instead. Using `__init__.py` has a risk of accidentally adding import-time computations. We want to avoid that. --- src/awx_plugins/interfaces/api.py | 1 + tests/smoke_test.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/awx_plugins/interfaces/api.py diff --git a/src/awx_plugins/interfaces/api.py b/src/awx_plugins/interfaces/api.py new file mode 100644 index 00000000..3e7b95de --- /dev/null +++ b/src/awx_plugins/interfaces/api.py @@ -0,0 +1 @@ +"""Entry point module for interfacing with the AWX plugin interfaces.""" diff --git a/tests/smoke_test.py b/tests/smoke_test.py index ca21ea4e..fc11d221 100644 --- a/tests/smoke_test.py +++ b/tests/smoke_test.py @@ -3,7 +3,9 @@ It can be deleted once the project has actual tests in. """ +from awx_plugins.interfaces import api + def test_smoke() -> None: """Ensure the CI picks this up.""" - assert 'that it works' + assert f'that {api} works'