Dynamically extending the python path at runtime is bad for developer experience, as this is not understood by the text editor and therefore jump to definition etc. does not work. -> Better to remove the dynamic inclusion and force developers to specify the import correctly.
9 lines
189 B
Python
9 lines
189 B
Python
import pytest
|
|
from helpers.cli import Cli
|
|
|
|
|
|
def test_help(capfd: pytest.CaptureFixture) -> None:
|
|
cli = Cli()
|
|
with pytest.raises(SystemExit):
|
|
cli.run(["clan-app", "--help"])
|