Skip to content

Commit

Permalink
fix 🔧 resolve lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
samar-hassan committed Jan 18, 2024
1 parent c76343a commit f7b8e01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ version-django-oscar-commerce-connect.txt
sandbox/media/
sandbox/static/
docs/build/
lint.installed
lint.installed
.vscode
9 changes: 6 additions & 3 deletions oscarapi/tests/unit/testproduct.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,8 +1173,9 @@ def test_add_local_image(self):
"description": "Henk",
"images": [
{
"original": "https://testserver/%s/image.jpg"
% settings.MEDIA_ROOT,
"original": (
"https://testserver/%s/image.jpg" % settings.MEDIA_ROOT
),
"caption": "HA! IK HEET HARRIE",
}
],
Expand Down Expand Up @@ -1210,7 +1211,9 @@ def test_add_broken_image(self, urlopen):
"description": "Henk",
"images": [
{
"original": "https://example.com/image-that-does-not-exist-at-all.png",
"original": (
"https://example.com/image-that-does-not-exist-at-all.png"
),
"caption": "HA! IK HEET HARRIE",
}
],
Expand Down
1 change: 1 addition & 0 deletions oscarapi/utils/exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module contains functions that can be used to identify an existing piece
of data in the database based on it's unique attributes
"""

from django.db import models

from oscar.core.loading import get_model
Expand Down

0 comments on commit f7b8e01

Please sign in to comment.