Task:
Implement a minimal Salt-compatible loader under /app/salt/ (as a package) that the tests can import and use.
What to implement
Create a Python package at /app/salt/ with at least:
An init.py (can be minimal)
A loader.py module that exposes a function:
def minion_mods(config) -> dict[str, object]
Accepts a single argument config (any object, can be ignored).
Returns a mapping (dict-like) representing loaded minion modules. The tests will call salt.loader.minion_mods(minion.config) and perform membership checks on its result.
The returned mapping MUST contain exactly (or at least) the key "ttp.run" (e.g., {'ttp.run': _ttp_run}).
Do not include the key "monty.python" (the tests expect this key to be absent).
A simple module/object associated with "ttp.run":
Implement as a Python function (e.g., def _ttp_run(*args, **kwargs) -> str) or a small callable object.
The value for the "ttp.run" key in the mapping should be this callable.
The function can perform a trivial action or return a fixed string, e.g., "ttp.run executed" (the tests don’t call it, only verify presence).
Returns a dict-like object containing the key "ttp.run".
The value for "ttp.run" can be any callable (e.g., a simple function) representing the module.
The mapping must not contain the key "monty.python".
The tests will verify:
"monty.python" not in loader
"ttp.run" in loader
Notes
The implementation should be self-contained and not require the real Salt infrastructure.
The tests instantiate loader by calling salt.loader.minion_mods(minion.config); ensure minion_mods accepts any config-like object and returns the expected mapping.
Place the code in /app/salt/ as a package (not /app/salt.py), so that import salt.loader works as expected.