|
21 | 21 | from reportportal_client.helpers import ( |
22 | 22 | gen_attributes, get_launch_sys_attrs, to_bool, |
23 | 23 | verify_value_length, ATTRIBUTE_LENGTH_LIMIT, TRUNCATE_REPLACEMENT, guess_content_type_from_bytes, is_binary, |
24 | | - match_with_asterisks |
| 24 | + match_with_glob_pattern |
25 | 25 | ) |
26 | 26 |
|
27 | 27 |
|
@@ -213,6 +213,11 @@ def test_to_bool_invalid_value(): |
213 | 213 | ('l*e*1', 'l1ne11', True), |
214 | 214 | ('l*e*1', 'l1ne1', True), |
215 | 215 | ('l*e*2', 'l1ne1', False), |
| 216 | + ('line?', 'line', False), |
| 217 | + ('line?', 'line1', True), |
| 218 | + ('line?', 'line11', False), |
| 219 | + ('?line', 'line', False), |
| 220 | + ('?line', '1line', True), |
216 | 221 | ]) |
217 | | -def test_match_with_asterisks(pattern: Optional[str], line: Optional[str], expected: bool): |
218 | | - assert match_with_asterisks(pattern, line) == expected |
| 222 | +def test_match_with_glob_pattern(pattern: Optional[str], line: Optional[str], expected: bool): |
| 223 | + assert match_with_glob_pattern(pattern, line) == expected |
0 commit comments