Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fekoch committed Jan 27, 2025
1 parent ef2f4b6 commit 45b04fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
1 change: 0 additions & 1 deletion evap/evaluation/tests/test_models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import date, datetime, timedelta
from unittest.mock import Mock, call, patch

import django.db.utils
from django.contrib.auth.models import Group
from django.core import mail
from django.core.cache import caches
Expand Down
23 changes: 9 additions & 14 deletions evap/evaluation/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,7 @@
from django.urls import reverse
from model_bakery import baker

from evap.evaluation.models import (
NO_ANSWER,
Contribution,
Evaluation,
Question,
Questionnaire,
QuestionType,
Semester,
UserProfile,
)
from evap.evaluation.models import NO_ANSWER, Evaluation, Question, Questionnaire, QuestionType, Semester, UserProfile
from evap.evaluation.tests.tools import (
WebTest,
WebTestWith200Check,
Expand Down Expand Up @@ -304,10 +295,14 @@ def setUpTestData(cls) -> None:

cls.question = baker.make(Question, type=QuestionType.POSITIVE_YES_NO)

cls.normal_questionnaire = baker.make(Questionnaire, type=Questionnaire.Type.TOP, questions=[
baker.make(Question,type=QuestionType.TEXT),
baker.make(Question, type=QuestionType.EASY_DIFFICULT)
])
cls.normal_questionnaire = baker.make(
Questionnaire,
type=Questionnaire.Type.TOP,
questions=[
baker.make(Question, type=QuestionType.TEXT),
baker.make(Question, type=QuestionType.EASY_DIFFICULT),
],
)
cls.dropout_questionnaire = baker.make(Questionnaire, type=Questionnaire.Type.DROPOUT, questions=[cls.question])

cls.evaluation = baker.make(
Expand Down
1 change: 0 additions & 1 deletion evap/student/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
NO_ANSWER,
Contribution,
Evaluation,
Questionnaire,
RatingAnswerCounter,
Semester,
TextAnswer,
Expand Down

0 comments on commit 45b04fb

Please sign in to comment.