def test_infer_modality_no_extension_found(self):
        """A test to ensure if the extension is not found, we go to the mime type"""
        url = "https://example.com/file.unknown"

        with patch('marqo.core.inference.modality_utils.fetch_content_sample') as mock_fetch, \
                patch('marqo.core.inference.modality_utils.magic.from_buffer', return_value="audio/mpeg"), \
                patch('marqo.core.inference.modality_utils._infer_modality_based_on_mime_type') as mock_infer_on_mime:
            mock_fetch.return_value = MagicMock()
            _ = infer_modality(url)
            mock_infer_on_mime.assert_called_once_with("audio/mpeg")
A test to ensure if the extension is not found, we go to the mime type
tests/unit_tests/marqo/core/inference/test_infer_modality.py