Move tests to pytest and add a CI job #25
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The five scripts in
tests/already follow the shape pytest formalises--
test_ovpn_quote.pyeven skips when OpenVPN is absent. Convertingprint/manual-assert toassert+pytest.mark.skipifis mechanical and buyscollection, selection, fixtures and a real exit code.
Keep
tests/manual/bypass_cgroup.pyout of the default run; it needs root.Add a CI job running
pyteston push. None of the current tests need root,network or a VPN account, so it runs anywhere. Include a lint step
(
ruff/pyflakes, or-W error::SyntaxWarning) -- that alone would have caughtboth the escape-sequence warnings and the
conf.ROOTDIRtypo before theyshipped.