Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports #713

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion wafer/pages/migrations/0006_menu_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
Expand Down
1 change: 0 additions & 1 deletion wafer/registration/sso.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist
from django.db import IntegrityError

import requests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import wafer.snippets.markdown_field


class Migration(migrations.Migration):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from django.db import migrations, models
import django.db.models.deletion
import wafer.snippets.markdown_field


class Migration(migrations.Migration):
Expand Down
4 changes: 1 addition & 3 deletions wafer/schedule/migrations/0010_cleanup_old_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# Manual migration to cleanup old columns and models after migrating the data
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import wafer.snippets.markdown_field
from django.db import migrations


class Migration(migrations.Migration):
Expand Down
5 changes: 0 additions & 5 deletions wafer/schedule/tests/test_schedule_datetime_widget.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
import datetime as D

try:
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from selenium.common.exceptions import NoSuchElementException
except ImportError:
# These need to be non-fatal so the tests can be always loaded
# and the check in the Runner base class will fail these
# if stuff isn't loaded
pass


from django.utils import timezone
from django.urls import reverse

from wafer.pages.models import Page
from wafer.tests.utils import ChromeTestRunner, FirefoxTestRunner, SELENIUM_WAIT_TIME

from wafer.schedule.models import Venue, Slot, ScheduleBlock
from wafer.schedule.tests.test_views import make_pages, make_items


class ScheduleDateTimeJSMixin:
Expand Down
8 changes: 2 additions & 6 deletions wafer/schedule/tests/test_schedule_editor.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import datetime as D

import time

try:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
Expand All @@ -17,16 +14,15 @@

from unittest import expectedFailure

from django.utils import timezone, version
from django.utils import version
from django.urls import reverse

from wafer.pages.models import Page
from wafer.tests.utils import create_user, ChromeTestRunner, FirefoxTestRunner, SELENIUM_WAIT_TIME
from wafer.talks.tests.fixtures import create_talk
from wafer.talks.models import ACCEPTED

from wafer.schedule.models import ScheduleBlock, Venue, Slot, ScheduleItem
from wafer.schedule.tests.test_views import make_pages, make_items
from wafer.schedule.tests.test_views import make_pages


class EditorTestsMixin:
Expand Down
2 changes: 1 addition & 1 deletion wafer/talks/migrations/0011_talk_status_data_migration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
from django.db import migrations


# Data migration for the changed talk status
Expand Down
3 changes: 0 additions & 3 deletions wafer/talks/migrations/0017_talk_submission_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
# Generated by Django 1.11.25 on 2019-11-06 16:38
from __future__ import unicode_literals

from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import markitup.fields
import wafer.talks.models


class Migration(migrations.Migration):
Expand Down
5 changes: 0 additions & 5 deletions wafer/talks/migrations/0018_talk_type_submission_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
# Generated by Django 1.11.25 on 2019-11-08 11:11
from __future__ import unicode_literals

from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import markitup.fields
import wafer.talks.models


class Migration(migrations.Migration):
Expand Down
5 changes: 0 additions & 5 deletions wafer/talks/migrations/0019_talkurl_length.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Generated by Django 2.2.15 on 2020-08-27 15:36

from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import markitup.fields
import wafer.talks.models


class Migration(migrations.Migration):
Expand Down
4 changes: 0 additions & 4 deletions wafer/talks/migrations/0021_talk_type_show_speakers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# Generated by Django 3.0.3 on 2020-10-11 12:16

from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import markitup.fields
import wafer.talks.models


class Migration(migrations.Migration):
Expand Down
2 changes: 0 additions & 2 deletions wafer/talks/migrations/0022_talk_language.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Generated by Django 2.2.23 on 2021-06-03 15:32

from django.conf import settings
from django.db import migrations, models
import wafer.talks.models


class Migration(migrations.Migration):
Expand Down
4 changes: 1 addition & 3 deletions wafer/talks/tests/test_review_forms.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
"""Tests for wafer.talk review form behaviour."""

from django.test import TestCase, override_settings
from django.urls import reverse

from reversion import revisions

from wafer.talks.models import (SUBMITTED, UNDER_CONSIDERATION,
ReviewAspect, Review)
from wafer.talks.models import SUBMITTED, ReviewAspect, Review
from wafer.talks.forms import ReviewForm, make_aspect_key

from wafer.tests.utils import create_user
Expand Down
2 changes: 1 addition & 1 deletion wafer/talks/tests/test_review_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from wafer.talks.models import (SUBMITTED, UNDER_CONSIDERATION,
ReviewAspect, Review)
from wafer.talks.forms import ReviewForm, make_aspect_key
from wafer.talks.forms import make_aspect_key

from wafer.tests.utils import create_user
from wafer.talks.tests.fixtures import create_talk
Expand Down
1 change: 0 additions & 1 deletion wafer/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
try:
# Guard for running this without selenium installed
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
Expand Down
2 changes: 1 addition & 1 deletion wafer/tickets/tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from wafer.tests.utils import create_user
from wafer.tickets.views import import_ticket
from wafer.tickets.models import Ticket, TicketType, user_is_registered, get_user_ticket_types
from wafer.tickets.models import TicketType, user_is_registered, get_user_ticket_types


class TicketsHelperFunctionTests(TestCase):
Expand Down
1 change: 0 additions & 1 deletion wafer/users/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from django.utils.translation import gettext as _
from django.conf import settings

from crispy_forms.bootstrap import PrependedText
from crispy_forms.helper import FormHelper
from crispy_forms.layout import HTML, Submit

Expand Down
2 changes: 1 addition & 1 deletion wafer/users/migrations/0003_auto_20160329_2003.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
from django.db import migrations


class Migration(migrations.Migration):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Django 4.1.1 on 2023-10-07 16:42

from django.db import migrations, models
from django.db import migrations


class Migration(migrations.Migration):
Expand Down
1 change: 0 additions & 1 deletion wafer/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from django.dispatch import receiver
from django.utils.module_loading import import_string
from django.utils.translation import gettext_lazy as _
from django.core.validators import RegexValidator
from django.core.exceptions import ObjectDoesNotExist

from libravatar import libravatar_url
Expand Down
Loading