Validate presence or absence of specific strings.
(result, expected_strings, exclude_strings=None)
| 98 | |
| 99 | # --- Helper Functions --- |
| 100 | def validate_strings(result, expected_strings, exclude_strings=None): |
| 101 | """Validate presence or absence of specific strings.""" |
| 102 | text_content = result.text_content.replace("\\", "") |
| 103 | for string in expected_strings: |
| 104 | assert string in text_content |
| 105 | if exclude_strings: |
| 106 | for string in exclude_strings: |
| 107 | assert string not in text_content |
| 108 | |
| 109 | |
| 110 | def test_stream_info_operations() -> None: |
no outgoing calls
no test coverage detected
searching dependent graphs…