diff --git a/flashcards/apps/core/tests/test_context_processors.py b/flashcards/apps/core/tests/test_context_processors.py index 76fde48..a4a9035 100644 --- a/flashcards/apps/core/tests/test_context_processors.py +++ b/flashcards/apps/core/tests/test_context_processors.py @@ -2,7 +2,7 @@ from django.test import TestCase, override_settings -from flashcards.apps.core.context_processors import core +# from flashcards.apps.core.context_processors import core PLATFORM_NAME = 'Test Platform' @@ -12,6 +12,6 @@ class CoreContextProcessorTests(TestCase): @override_settings(PLATFORM_NAME=PLATFORM_NAME) def test_core(self): - return + return # request = RequestFactory().get('/') # self.assertDictEqual(core(request), {'platform_name': PLATFORM_NAME}) diff --git a/flashcards/apps/core/tests/test_models.py b/flashcards/apps/core/tests/test_models.py index 427505c..4281235 100644 --- a/flashcards/apps/core/tests/test_models.py +++ b/flashcards/apps/core/tests/test_models.py @@ -1,10 +1,11 @@ """ Tests for core models. """ from django.test import TestCase + # from django_dynamic_fixture import G # from social_django.models import UserSocialAuth -from flashcards.apps.core.models import User +# from flashcards.apps.core.models import User class UserTests(TestCase): diff --git a/flashcards/apps/core/tests/test_views.py b/flashcards/apps/core/tests/test_views.py index 665eaa1..e180298 100644 --- a/flashcards/apps/core/tests/test_views.py +++ b/flashcards/apps/core/tests/test_views.py @@ -6,6 +6,7 @@ from django.contrib.auth import get_user_model # from django.db import DatabaseError from django.test import TestCase + # from django.test.utils import override_settings # from django.urls import reverse diff --git a/flashcards/utils.py b/flashcards/utils.py index dd3533f..f4b912f 100644 --- a/flashcards/utils.py +++ b/flashcards/utils.py @@ -1,10 +1,13 @@ """ -Integration with openai to generate 'flashcards' in csv form +OpenAI integration utilities. + +Integration with OpenAI to generate 'flashcards' in csv form based on course content """ import openai -from flashcards.settings.private import OPENAI_API_KEY # pylint: disable=import-error,no-name-in-module + +from flashcards.settings.private import OPENAI_API_KEY # pylint: disable=import-error,no-name-in-module openai.api_key = OPENAI_API_KEY @@ -25,7 +28,7 @@ Lesson 5: Filamentous Fungi Lesson 6: Aged Meat and Cheese Lesson 7: Chocolate and Coffee -""" +""" # noqa course_content = """ ROBERTO KOLTER: While humans have been preparing and consuming @@ -169,7 +172,7 @@ Why can the Dead Sea keep swimmers afloat?,Due to high salt content Why is the Dead Sea called Dead?,Because only simple organisms can live in it Why only simple organisms can live in the Dead Sea?,Because of high salt content -""" +""" # noqa messages = [ {"role": "system", diff --git a/requirements/dev.txt b/requirements/dev.txt index 420c4fa..091dbef 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -177,7 +177,7 @@ edx-drf-extensions==8.12.0 # via -r requirements/validation.txt edx-i18n-tools==1.3.0 # via -r requirements/dev.in -edx-lint==5.3.4 +edx-lint==5.3.6 # via -r requirements/validation.txt edx-opaque-keys==2.5.1 # via diff --git a/requirements/doc.txt b/requirements/doc.txt index 82c43df..47594aa 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -177,7 +177,7 @@ edx-django-utils==5.7.0 # edx-rest-api-client edx-drf-extensions==8.12.0 # via -r requirements/test.txt -edx-lint==5.3.4 +edx-lint==5.3.6 # via -r requirements/test.txt edx-opaque-keys==2.5.1 # via diff --git a/requirements/quality.txt b/requirements/quality.txt index bcb676c..8dfbaf2 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -159,7 +159,7 @@ edx-django-utils==5.7.0 # edx-rest-api-client edx-drf-extensions==8.12.0 # via -r requirements/test.txt -edx-lint==5.3.4 +edx-lint==5.3.6 # via # -r requirements/quality.in # -r requirements/test.txt diff --git a/requirements/test.txt b/requirements/test.txt index 3150a92..45840fe 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -147,7 +147,7 @@ edx-django-utils==5.7.0 # edx-rest-api-client edx-drf-extensions==8.12.0 # via -r requirements/base.txt -edx-lint==5.3.4 +edx-lint==5.3.6 # via -r requirements/test.in edx-opaque-keys==2.5.1 # via diff --git a/requirements/validation.txt b/requirements/validation.txt index 03c6ac3..005a49a 100644 --- a/requirements/validation.txt +++ b/requirements/validation.txt @@ -205,7 +205,7 @@ edx-drf-extensions==8.12.0 # via # -r requirements/quality.txt # -r requirements/test.txt -edx-lint==5.3.4 +edx-lint==5.3.6 # via # -r requirements/quality.txt # -r requirements/test.txt