Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1780 | fixing pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Aug 16, 2024
1 parent 759ed77 commit 7ff08cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/events/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion core/events/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
self.assertEqual(self.user_event.public, False)

0 comments on commit 7ff08cb

Please sign in to comment.