first version
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""Module entry point for nested_python_module testing fixture."""
|
||||
|
||||
import logging
|
||||
|
||||
from src import func_one # type: ignore[attr-defined]
|
||||
from src import func_two # type: ignore[attr-defined]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.info("Nested Python Module is running.")
|
||||
result_one = func_one()
|
||||
logger.info("func_one result: %s", {result_one})
|
||||
result_two = func_two()
|
||||
logger.info("func_two result: %s", {result_two})
|
||||
logger.info("Nested Python Module executed successfully.")
|
||||
@@ -0,0 +1,4 @@
|
||||
from .func_one import func_one
|
||||
from .func_two import func_two
|
||||
|
||||
__all__ = ["func_one", "func_two"]
|
||||
@@ -0,0 +1,10 @@
|
||||
"""Definition of func_one function."""
|
||||
|
||||
|
||||
def func_one() -> str:
|
||||
"""A simple function that returns a string.
|
||||
|
||||
Returns:
|
||||
str: A greeting string.
|
||||
"""
|
||||
return "Function One says Hello!"
|
||||
@@ -0,0 +1,10 @@
|
||||
"""Definition of func_two function."""
|
||||
|
||||
|
||||
def func_two() -> str:
|
||||
"""A simple function that returns a string.
|
||||
|
||||
Returns:
|
||||
str: A greeting string.
|
||||
"""
|
||||
return "Function Two says Hello!"
|
||||
@@ -0,0 +1,4 @@
|
||||
"""hello_world module."""
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("Hello, World!")
|
||||
Reference in New Issue
Block a user