Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import os
2import sys
3import subprocess
4
5import pytest
6
7
8def test_managepy(capfd):
9 subprocess.run([sys.executable, "manage.py", "testok"], text=True)
10 captured = capfd.readouterr()
11 assert "test ok!" in captured.out