We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e90471d commit 0f302abCopy full SHA for 0f302ab
case/pytest/test_pytest_demo.py
@@ -0,0 +1,17 @@
1
+# -*- coding:utf-8 -*-
2
+
3
+import os
4
+import pytest
5
6
7
+def test_cmd_0():
8
+ ''' the test cmd '''
9
+ print('\nthe test_cmd_0 ended.')
10
11
12
+if __name__ == "__main__":
13
+ ''' the main point '''
14
+ retcode = pytest.main(args=['-v', '-s', os.path.abspath(__file__)])
15
+ # retcode = pytest.main(args=['--fixtures', os.path.abspath(__file__)])
16
+ # retcode = pytest.main(args=['--collect-only', os.path.abspath(__file__)])
17
+ print(retcode)
0 commit comments