Skip to content

Commit 9cf5675

Browse files
authored
Small changes to 2_Tests.md
1 parent 3c10d0b commit 9cf5675

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/testing/Writing_Tests/2_Tests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_assert():
3939
)
4040
```
4141

42-
## `assert_true` and `assert_that` and `assert_equals`
42+
## Assertions
4343

4444
To make hard (leading to test failure) assertions, you can use the `assert_true`, `assert_that`, and `assert_equals` functions. These functions are similar to the ones you might know from unit testing frameworks like `unittest` or `pytest`, but they add support for localization.
4545

@@ -98,7 +98,7 @@ def assert_true(
9898
- `assert_true` checks for a boolean condition (true or false), e.g. the result of a `.contains(...)` check.
9999

100100

101-
### `assert_false``
101+
### `assert_false`
102102
```py
103103
def assert_false(
104104
actual_value: InvariantBool | bool,
@@ -119,7 +119,7 @@ def assert_that(
119119

120120
- `assert_that` uses a designated `Matcher` class to check the message content. In this case, `IsSimilar` is used to compare the message content to some expected value with a given threshold for maximum allowed difference.
121121

122-
## `expect_true`, `expect_false`, `expect_that` and `expect_equals`
122+
## Expectations (Soft Assertions)
123123

124124
Next to hard assertions, `testing` also supports _soft assertions_ that do not lead to test failure.
125125

0 commit comments

Comments
 (0)