Edit file File name : test_main.py Content : from dhwp.main import DhWpTest def test_dhwp(tmp): with DhWpTest() as app: res = app.run() print(res) def test_command1(tmp): argv = ['command1'] with DhWpTest(argv=argv) as app: app.run() Save