mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 22:30:22 -07:00
Fix typos in documentation (#42406)
Fix typos in unit test documentation Fixes: #42405
This commit is contained in:
parent
f98a0b521f
commit
fecda03066
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ Here is an example of a function::
|
||||||
|
|
||||||
Here is an example of a class::
|
Here is an example of a class::
|
||||||
|
|
||||||
import unittest:
|
import unittest
|
||||||
|
|
||||||
class AddTester(unittest.TestCase)
|
class AddTester(unittest.TestCase)
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ few basic tests for a module. The class-based test allows more tidy set up and
|
||||||
of pre-requisites, so if you have many test cases for your module you may want to refactor
|
of pre-requisites, so if you have many test cases for your module you may want to refactor
|
||||||
to use that.
|
to use that.
|
||||||
|
|
||||||
Assertions using the simple ``assert`` function inside the tests will give give full
|
Assertions using the simple ``assert`` function inside the tests will give full
|
||||||
information on the cause of the failure with a trace-back of functions called during the
|
information on the cause of the failure with a trace-back of functions called during the
|
||||||
assertion. This means that plain asserts are recommended over other external assertion
|
assertion. This means that plain asserts are recommended over other external assertion
|
||||||
libraries.
|
libraries.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue