Skip to content

Commit 568e00a

Browse files
committed
fixing up formatting inline with a smaller shell and typos
1 parent bad7a02 commit 568e00a

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

doc/en/getting-started.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ Once you develop multiple tests, you may want to group them into a class. pytest
153153
154154
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.
155155

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:
157157

158-
* Structural or organizational reasons
158+
* Test organization
159159
* Sharing fixtures for tests only in that particular class
160160
* Applying marks at the class level and having them implicitly apply to all tests
161161

@@ -177,30 +177,32 @@ This is outlined below:
177177
178178
$ pytest -k TestClassDemoInstance -q
179179
180-
FF [100%]
181-
============================================================================================================== FAILURES ===============================================================================================================
182-
___________________________________________________________________________________________________ TestClassDemoInstance.test_one ____________________________________________________________________________________________________
180+
FF [100%]
181+
================================== FAILURES ===================================
182+
_______________________ TestClassDemoInstance.test_one ________________________
183183
184-
self = <test_example.TestClassDemoInstance object at 0x000001F001A24EB8>, request = <FixtureRequest for <Function test_one>>
184+
self = <test_example.TestClassDemoInstance object at 0x0000019BBB9EEDA0>
185+
request = <FixtureRequest for <Function test_one>>
185186
186187
def test_one(self, request):
187188
> assert 0
188189
E assert 0
189190
190191
testing\test_example.py:4: AssertionError
191-
___________________________________________________________________________________________________ TestClassDemoInstance.test_two ____________________________________________________________________________________________________
192+
_______________________ TestClassDemoInstance.test_two ________________________
192193
193-
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>>
194196
195197
def test_two(self, request):
196198
> assert 0
197199
E assert 0
198200
199201
testing\test_example.py:7: AssertionError
200-
======================================================================================================= short test summary info =======================================================================================================
202+
=========================== short test summary info ===========================
201203
FAILED testing/test_example.py::TestClassDemoInstance::test_one - assert 0
202204
FAILED testing/test_example.py::TestClassDemoInstance::test_two - assert 0
203-
2 failed in 0.17s
205+
2 failed in 0.11s
204206
205207
Request a unique temporary directory for functional tests
206208
--------------------------------------------------------------

0 commit comments

Comments
 (0)