From 7ff08cbb13159f45fd12b16caed05687c0202a64 Mon Sep 17 00:00:00 2001 From: Sny Date: Fri, 16 Aug 2024 13:33:05 +0530 Subject: [PATCH] OpenConceptLab/ocl_issues#1780 | fixing pylint errors --- core/events/tests/factories.py | 6 +++--- core/events/tests/tests.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/events/tests/factories.py b/core/events/tests/factories.py index aafd978b..f8bb2e07 100644 --- a/core/events/tests/factories.py +++ b/core/events/tests/factories.py @@ -16,17 +16,17 @@ class Meta: @factory.post_generation def referenced_object(self, create, extracted): - if not create or self.referenced_object_url: + if not create or self.referenced_object_url: # pylint: disable=access-member-before-definition return if extracted: self.referenced_object_url = get(extracted, 'url') else: - self.referenced_object_url = OrganizationFactory().url + self.referenced_object_url = OrganizationFactory().url # pylint: disable=access-member-before-definition @factory.post_generation def object(self, create, extracted): - if not create or self.object_url: + if not create or self.object_url: # pylint: disable=access-member-before-definition return if extracted: diff --git a/core/events/tests/tests.py b/core/events/tests/tests.py index 602fb7a0..0eaae47d 100644 --- a/core/events/tests/tests.py +++ b/core/events/tests/tests.py @@ -112,4 +112,4 @@ def test_clean_fields(self): self.user_event.public = None self.user_event.clean_fields() - self.assertEqual(self.user_event.public, False) \ No newline at end of file + self.assertEqual(self.user_event.public, False)