Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
refactor: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Faraz Maqsood authored and feanil committed Jun 20, 2024
1 parent 5ec623f commit 627d414
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 514 deletions.
3 changes: 3 additions & 0 deletions ecommerce/credit/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ def _assert_success_checkout_page(self, sku=None):
response = self.client.get(self.path)
self.assertEqual(response.status_code, 200)
if sys.version_info > (3, 9):
# assertDictContainsSubset is depreciated in python version>3.9
# context.response return ContextList object, belwo statements will convert it to dict
# assertLessEqual method is used instead of depreciated assertDictContainsSubset method
context = {}
for i, ctx in enumerate(response.context):
if isinstance(ctx, dict):
Expand Down
294 changes: 0 additions & 294 deletions pylintrc_backup

This file was deleted.

2 changes: 0 additions & 2 deletions requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ edx-django-utils
edx-drf-extensions>=8.13.0 # 8.13 fixes forgiven JWTs for ecommerce
edx-django-sites-extensions
edx-ecommerce-worker
edx-lint
edx-opaque-keys
edx-rbac
edx-rest-api-client
Expand All @@ -47,7 +46,6 @@ markdown==3.4.3
mysqlclient
newrelic
ndg-httpsclient
needle
openedx-atlas
path.py==7.2
paypalrestsdk
Expand Down
Loading

0 comments on commit 627d414

Please sign in to comment.