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

Commit

Permalink
fix: added test strings
Browse files Browse the repository at this point in the history
  • Loading branch information
zubair-ce07 committed Oct 3, 2023
1 parent d2c1671 commit 87ca48e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion ecommerce/extensions/dashboard/offers/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ def test_site(self):
}
metadata_url = reverse('dashboard:offer-metadata')
response = self.client.post(metadata_url, metadata)
print(response)

print(response.template_name)
print(response.context_data)
print(response.status_code)
for header, value in response.items():
print(f"{header}: {value}")

self.assertEqual(response.status_code, 302)
self.assertEqual(response['Location'], reverse('dashboard:offer-benefit'))

Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ extras==1.0.0
# via
# cybersource-rest-client-python
# python-subunit
factory-boy==3.2.1
factory-boy==3.1.0
# via django-oscar
faker==18.10.1
# via factory-boy
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ extras==1.0.0
# -r requirements/test.txt
# cybersource-rest-client-python
# python-subunit
factory-boy==3.2.1
factory-boy==3.1.0
# via
# -r requirements/test.txt
# django-oscar
Expand Down
2 changes: 1 addition & 1 deletion requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ extras==1.0.0
# via
# cybersource-rest-client-python
# python-subunit
factory-boy==3.2.1
factory-boy==3.1.0
# via django-oscar
faker==18.10.1
# via factory-boy
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ extras==1.0.0
# -r requirements/base.txt
# cybersource-rest-client-python
# python-subunit
factory-boy==3.2.1
factory-boy==3.1.0
# via
# -r requirements/base.txt
# -r requirements/test.in
Expand Down

0 comments on commit 87ca48e

Please sign in to comment.