Skip to content

Commit 1046b9f

Browse files
Strengthen session upload helper usage guard assertions
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 1e6e6db commit 1046b9f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_session_upload_helper_usage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ def test_session_managers_use_shared_upload_input_normalizer():
1616
module_text = Path(module_path).read_text(encoding="utf-8")
1717
assert "normalize_upload_file_input(" in module_text
1818
assert "os.fspath(" not in module_text
19+
assert "ensure_existing_file_path(" not in module_text
20+
assert 'getattr(file_input, "read"' not in module_text

0 commit comments

Comments
 (0)