ausgeführt wird.
Code: Select all
test_addition.py
Code: Select all
def test_addition():
fh = open("a.log")
# write to above log file and save
fh.close()
assert 1 + 1 == 2
< /code>
Befehl: < /p>
pytest --html=report.html
Code: Select all
test_addition.py
Code: Select all
def test_addition():
fh = open("a.log")
# write to above log file and save
fh.close()
assert 1 + 1 == 2
< /code>
Befehl: < /p>
pytest --html=report.html