Skip to content

Commit

Permalink
✨ Add initial API entry point module
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
webknjaz committed Sep 24, 2024
1 parent 1484678 commit 8038cdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/awx_plugins/interfaces/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Entry point module for interfacing with the AWX plugin interfaces."""
4 changes: 3 additions & 1 deletion tests/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 8038cdd

Please sign in to comment.