/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
lms/tests.py
29 строк
766 B
Kyle McCormick
style: django-not-configured is not a sensible lint-amnesty value (#26862)
05 мар 2021, 16:11
Не верифицирован
05 мар 2021, 16:11
9aefd6f
Код
Авторство
О чём код?
"""Tests for the lms module itself.""" import logging import mimetypes from django.conf import settings # lint-amnesty, pylint: disable=unused-import from django.test import TestCase log = logging.getLogger(__name__) class LmsModuleTests(TestCase): """ Tests for lms module itself. """ def test_new_mimetypes(self): extensions = ['eot', 'otf', 'ttf', 'woff'] for extension in extensions: mimetype, _ = mimetypes.guess_type('test.' + extension) assert mimetype is not None def test_api_docs(self): """ Tests that requests to the `/api-docs/` endpoint do not raise an exception. """ response = self.client.get('/api-docs/') assert response.status_code == 200