Files
openworker/tests/test_console_scripts.py
Rohit C Prasad 9671e7294c One command on the path: openworker
The server, connectors tool, acceptor and team board no longer install as commands.
They stay runnable as modules (python -m coworker.server.run, …) for development.
2026-10-05 15:00:42 -07:00

18 lines
610 B
Python

"""The package puts one command on the path: `openworker`. The server, the connectors
tool, the acceptor and the team board are run as modules while they are not products."""
from __future__ import annotations
import sys
from pathlib import Path
if sys.version_info >= (3, 11):
import tomllib
else: # pragma: no cover
import tomli as tomllib
def test_only_openworker_is_a_console_script() -> None:
pyproject = tomllib.loads((Path(__file__).resolve().parents[1] / "pyproject.toml").read_text(encoding="utf-8"))
assert pyproject["project"]["scripts"] == {"openworker": "coworker.cli:main"}