Repository navigation
Expand file tree
/
Copy pathtest_example.py
More file actions
71 lines (50 loc) · 1.4 KB
/
Copy pathtest_example.py
File metadata and controls
71 lines (50 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
"""
Example test file to demonstrate pytest-start-from plugin functionality
"""
import pytest
def test_first():
"""first test case"""
print("\nExecuting test_first")
assert True
def test_second():
"""second test case"""
print("\nExecuting test_second")
assert True
def test_third():
"""third test case"""
print("\nExecuting test_third")
assert True
def test_fourth():
"""fourth test case"""
print("\nExecuting test_fourth")
assert True
def test_fifth():
"""fifth test case"""
print("\nExecuting test_fifth")
assert True
class TestClass:
"""test class with multiple methods"""
def test_class_first(self):
"""first test in class"""
print("\nExecuting test_class_first")
assert True
def test_class_second(self):
"""second test in class"""
print("\nExecuting test_class_second")
assert True
def test_class_third(self):
"""third test in class"""
print("\nExecuting test_class_third")
assert True
def test_with_parameters_a():
"""test with parameter in name"""
print("\nExecuting test_with_parameters_a")
assert True
def test_with_parameters_b():
"""another test with parameter in name"""
print("\nExecuting test_with_parameters_b")
assert True
def test_last():
"""last test case"""
print("\nExecuting test_last")
assert True