Add new test cases for MarkItDown to cover LLM, remote, and local file conversions. Implement tests for handling deprecation warnings, external URL queries, and EXIF data processing. Ensure tests are skipped when necessary environment conditions are not met, improving test reliability and maintainability.
11 lines
399 B
Python
11 lines
399 B
Python
# --- Helper Functions ---
|
|
|
|
|
|
def validate_strings(result, expected_strings, exclude_strings=None):
|
|
"""Validate presence or absence of specific strings."""
|
|
text_content = result.text_content.replace("\\", "")
|
|
for string in expected_strings:
|
|
assert string in text_content
|
|
if exclude_strings:
|
|
for string in exclude_strings:
|
|
assert string not in text_content
|