Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 12, 2023
1 parent eb95e8a commit 64219af
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion backend-project/small_eod/cases/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def create(self, validated_data):
return case

def update(self, instance, validated_data):

tags = (
[
Tag.objects.get_or_create(name=tag)[0]
Expand Down
1 change: 0 additions & 1 deletion backend-project/small_eod/channels/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class ChannelFactory(AbstractTimestampUserFactory, DjangoModelFactory):

name = factory.Sequence(lambda n: "channel-%04d" % n)
city = FuzzyTrueOrFalse()
voivodeship = FuzzyTrueOrFalse()
Expand Down
2 changes: 0 additions & 2 deletions backend-project/small_eod/collections/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def test_authorize_with_token(self):
class CollectionViewSetTestCase(
TokenAuthorizationTestCaseMixin, GenericViewSetMixin, OrderingViewSetMixin, TestCase
):

basename = "collection"
serializer_class = CollectionSerializer
factory_class = CollectionFactory
Expand Down Expand Up @@ -111,7 +110,6 @@ def increase_list(self):
class CaseCollectionViewSetTestCase(
TokenAuthorizationTestCaseMixin, ReadOnlyViewSetMixin, TestCase
):

basename = "collection-case"
factory_class = CaseFactory
queries_less_than_limit = 11
Expand Down
1 change: 0 additions & 1 deletion backend-project/small_eod/events/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class EventFactory(AbstractTimestampUserFactory, DjangoModelFactory):

case = factory.SubFactory(CaseFactory)
date = FuzzyDateTimeFromNow(max_days=10)
name = factory.Sequence(lambda n: "event-%04d" % n)
Expand Down
1 change: 0 additions & 1 deletion backend-project/small_eod/generic/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class TimestampUserLogModel(models.Model):

modified_on = models.DateTimeField(
auto_now=True, verbose_name=_("Date of the modification")
)
Expand Down
1 change: 0 additions & 1 deletion backend-project/small_eod/generic/tests/test_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def test_success_two_run(self):
)

def test_create_letter(self):

stdout = StringIO()

call_command(
Expand Down
1 change: 0 additions & 1 deletion backend-project/small_eod/letters/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Meta:


class LetterFactory(AbstractTimestampUserFactory, DjangoModelFactory):

final = FuzzyTrueOrFalse()
date = FuzzyDateTimeFromNow(max_days=10)
direction = factory.fuzzy.FuzzyChoice(("IN", "OUT"))
Expand Down
1 change: 0 additions & 1 deletion backend-project/small_eod/notes/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class NoteFactory(AbstractTimestampUserFactory, DjangoModelFactory):

case = factory.SubFactory(CaseFactory)
comment = factory.Sequence(lambda n: "comment-%04d" % n)

Expand Down
1 change: 0 additions & 1 deletion backend-project/small_eod/tags/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class Meta:


class TagNamespaceFactory(AbstractTimestampUserFactory, DjangoModelFactory):

color = RGBColorFuzzyAttribute()
prefix = factory.Sequence(lambda n: "tag-%04d" % n)
description = factory.Sequence(lambda n: "desc-%04d" % n)
Expand Down
1 change: 0 additions & 1 deletion backend-project/small_eod/users/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class UserFactory(factory.django.DjangoModelFactory):

email = factory.Faker("email", locale="PL")
username = factory.Sequence("user-{}".format)
password = factory.PostGenerationMethodCall("set_password", "pass")
Expand Down

0 comments on commit 64219af

Please sign in to comment.