Skip to content

Commit

Permalink
flake8 fix
Browse files Browse the repository at this point in the history
Signed-off-by: rimonsh <[email protected]>
  • Loading branch information
rimonsh committed May 16, 2023
1 parent 64ec7bb commit 7c1b6ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions poll_suggestion/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
from poll.models import Poll
from django.db.utils import IntegrityError
from users.models import Profile
from datetime import datetime, timedelta
from django.apps import apps
from django.core.exceptions import ValidationError
from django.utils import timezone
from django.utils.timezone import localtime


class PollSuggestion(models.Model):
Expand Down
4 changes: 1 addition & 3 deletions poll_suggestion/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@
# Create your tests here.
from poll.models import Poll, get_default_end_date
from .models import PollSuggestion
from django.test import TestCase
from datetime import datetime, timedelta
from django.utils import timezone
from poll.models import Poll
from event.models import Event
from category.models import Category
from location.models import Location
from category_location.models import CategoryLocation
from django.core.exceptions import ValidationError
import pytest

EVENT_NAME = "weight lifting"
Expand Down Expand Up @@ -60,6 +57,7 @@ def setup_event(setup_category_location):
event.save()
return event


@pytest.fixture
def setup_poll(setup_event):
poll = Poll(event_id=setup_event, max_suggestions=MAX_SUGEGSTIONS, end_time=get_default_end_date())
Expand Down

0 comments on commit 7c1b6ac

Please sign in to comment.