Spaces:
Sleeping

studiq-backend / tests /test_image_validation.py
StudIQ Deploy Bot
Deploy from GitHub 336c411cba6a5f729ebdd4dba12a182faa91f51c
d6167ae
Raw History Blame Contribute Delete
364 Bytes
"""Unit tests for image MIME-type detection and validation."""
import pytest
def test_mime_type_validation():
"""Verify supported image MIME types."""
allowed_types = ["image/png", "image/jpeg", "image/webp", "image/gif"]
assert "image/png" in allowed_types
assert "image/jpeg" in allowed_types
assert "application/pdf" not in allowed_types