Skip to content

Commit

Permalink
style: [EDXOLDMNG-200] added pylint disable to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NiedielnitsevIvan committed Nov 30, 2022
1 parent a3b1945 commit 6c8913c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions credentials/apps/api/v2/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ def save_related_signatories(self, certificate: CourseCertificate):
"""
Generates new signatures and relates them to the certificate.
"""
raw_signatories_data = self.context["request"].data.get("signatories")
files = self.context["request"].FILES
raw_signatories_data = self.context["request"].data.get("signatories") # pylint: disable=no-member
files = self.context["request"].FILES # pylint: disable=no-member

if raw_signatories_data and files:
signatories_parsed_data = self.parse_signatories_in_files(raw_signatories_data, files)
Expand Down
5 changes: 4 additions & 1 deletion credentials/apps/credentials/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@


def create_test_image(extension):
return ContentFile(ImageField()._make_data({"width": 1289, "height": 720}), f"example.{extension}")
return ContentFile(
ImageField()._make_data({"width": 1289, "height": 720}), # pylint: disable=protected-access
f"example.{extension}"
)


class AbstractCertificateFactory(factory.django.DjangoModelFactory):
Expand Down

0 comments on commit 6c8913c

Please sign in to comment.