Skip to content

Commit 9811300

Browse files
committed
Add test for regexes inb out section.
1 parent 95f6552 commit 9811300

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,13 @@ Implementation notes:
130130
#### 4. Regular expressions in expectations
131131

132132
```yaml
133-
- case: with_out
133+
- case: expected_message_regex_with_out
134134
regex: yes
135135
main: |
136-
reveal_type('abc')
136+
a = 'abc'
137+
reveal_type(a)
137138
out: |
138-
main:1: note: .*str.*
139+
main:2: note: .*str.*
139140
```
140141

141142
## Options

pytest_mypy_plugins/tests/test-regex_assertions.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@
66
77
reveal_type(a) # N: Revealed type is "builtins.int"
88
reveal_type(b) # N: .*str.*
9+
10+
- case: expected_message_regex_with_out
11+
regex: yes
12+
main: |
13+
a = 'abc'
14+
reveal_type(a)
15+
out: |
16+
main:2: note: .*str.*

0 commit comments

Comments
 (0)