diff --git a/backend-project/small_eod/cases/serializers.py b/backend-project/small_eod/cases/serializers.py index 3344f7083..5a8b31bcd 100644 --- a/backend-project/small_eod/cases/serializers.py +++ b/backend-project/small_eod/cases/serializers.py @@ -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] diff --git a/backend-project/small_eod/channels/factories.py b/backend-project/small_eod/channels/factories.py index 67b6b625b..ca04180f8 100644 --- a/backend-project/small_eod/channels/factories.py +++ b/backend-project/small_eod/channels/factories.py @@ -6,7 +6,6 @@ class ChannelFactory(AbstractTimestampUserFactory, DjangoModelFactory): - name = factory.Sequence(lambda n: "channel-%04d" % n) city = FuzzyTrueOrFalse() voivodeship = FuzzyTrueOrFalse() diff --git a/backend-project/small_eod/collections/tests/test_views.py b/backend-project/small_eod/collections/tests/test_views.py index 24c29511d..cb4d4f2a1 100644 --- a/backend-project/small_eod/collections/tests/test_views.py +++ b/backend-project/small_eod/collections/tests/test_views.py @@ -47,7 +47,6 @@ def test_authorize_with_token(self): class CollectionViewSetTestCase( TokenAuthorizationTestCaseMixin, GenericViewSetMixin, OrderingViewSetMixin, TestCase ): - basename = "collection" serializer_class = CollectionSerializer factory_class = CollectionFactory @@ -111,7 +110,6 @@ def increase_list(self): class CaseCollectionViewSetTestCase( TokenAuthorizationTestCaseMixin, ReadOnlyViewSetMixin, TestCase ): - basename = "collection-case" factory_class = CaseFactory queries_less_than_limit = 11 diff --git a/backend-project/small_eod/events/factories.py b/backend-project/small_eod/events/factories.py index 3a7728293..6e3b9219f 100644 --- a/backend-project/small_eod/events/factories.py +++ b/backend-project/small_eod/events/factories.py @@ -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) diff --git a/backend-project/small_eod/generic/models.py b/backend-project/small_eod/generic/models.py index 838caafff..180a546f5 100644 --- a/backend-project/small_eod/generic/models.py +++ b/backend-project/small_eod/generic/models.py @@ -5,7 +5,6 @@ class TimestampUserLogModel(models.Model): - modified_on = models.DateTimeField( auto_now=True, verbose_name=_("Date of the modification") ) diff --git a/backend-project/small_eod/generic/tests/test_management.py b/backend-project/small_eod/generic/tests/test_management.py index 0802dcc79..76b1820f6 100644 --- a/backend-project/small_eod/generic/tests/test_management.py +++ b/backend-project/small_eod/generic/tests/test_management.py @@ -21,7 +21,6 @@ def test_success_two_run(self): ) def test_create_letter(self): - stdout = StringIO() call_command( diff --git a/backend-project/small_eod/letters/factories.py b/backend-project/small_eod/letters/factories.py index a821cde4e..d0b1b4171 100644 --- a/backend-project/small_eod/letters/factories.py +++ b/backend-project/small_eod/letters/factories.py @@ -27,7 +27,6 @@ class Meta: class LetterFactory(AbstractTimestampUserFactory, DjangoModelFactory): - final = FuzzyTrueOrFalse() date = FuzzyDateTimeFromNow(max_days=10) direction = factory.fuzzy.FuzzyChoice(("IN", "OUT")) diff --git a/backend-project/small_eod/notes/factories.py b/backend-project/small_eod/notes/factories.py index d98167e60..decaa50c8 100644 --- a/backend-project/small_eod/notes/factories.py +++ b/backend-project/small_eod/notes/factories.py @@ -7,7 +7,6 @@ class NoteFactory(AbstractTimestampUserFactory, DjangoModelFactory): - case = factory.SubFactory(CaseFactory) comment = factory.Sequence(lambda n: "comment-%04d" % n) diff --git a/backend-project/small_eod/tags/factories.py b/backend-project/small_eod/tags/factories.py index 572d65aaf..5acccb425 100644 --- a/backend-project/small_eod/tags/factories.py +++ b/backend-project/small_eod/tags/factories.py @@ -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) diff --git a/backend-project/small_eod/users/factories.py b/backend-project/small_eod/users/factories.py index 1b1c9493c..40f2f7b1d 100644 --- a/backend-project/small_eod/users/factories.py +++ b/backend-project/small_eod/users/factories.py @@ -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")