feat: add testing to python template

This commit is contained in:
Leon Schwarzäugl 2024-12-31 16:25:43 +01:00
parent fbc134388d
commit ed9e8bc22e
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
8 changed files with 329 additions and 69 deletions

View file

@ -0,0 +1,8 @@
import name
def test_hello(capsys):
name.hello()
captured = capsys.readouterr()
assert captured.out == "Hello from testing!\n"
assert captured.err == ""