You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/en/getting-started.rst
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -153,9 +153,9 @@ Once you develop multiple tests, you may want to group them into a class. pytest
153
153
154
154
The first test passed and the second failed. You can easily see the intermediate values in the assertion to help you understand the reason for the failure.
155
155
156
-
Some reasons why grouping tests in a class can be useful is:
156
+
Grouping tests in classes can be beneficial for the following reasons:
157
157
158
-
* Structural or organizational reasons
158
+
* Test organization
159
159
* Sharing fixtures for tests only in that particular class
160
160
* Applying marks at the class level and having them implicitly apply to all tests
self = <test_example.TestClassDemoInstance object at 0x000001F001A54908>, request = <FixtureRequest for <Function test_two>>
194
+
self = <test_example.TestClassDemoInstance object at 0x0000019BBB9F3D68>
195
+
request = <FixtureRequest for <Function test_two>>
194
196
195
197
def test_two(self, request):
196
198
> assert 0
197
199
E assert 0
198
200
199
201
testing\test_example.py:7: AssertionError
200
-
======================================================================================================= short test summary info =======================================================================================================
202
+
=========================== short test summary info ===========================
0 commit comments