From 87ca48e27d3dae2d3bd78b6fec0b263df21d0d88 Mon Sep 17 00:00:00 2001 From: zubair-ce07 Date: Tue, 3 Oct 2023 16:20:34 +0500 Subject: [PATCH] fix: added test strings --- ecommerce/extensions/dashboard/offers/tests/test_views.py | 8 +++++++- requirements/base.txt | 2 +- requirements/dev.txt | 2 +- requirements/production.txt | 2 +- requirements/test.txt | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ecommerce/extensions/dashboard/offers/tests/test_views.py b/ecommerce/extensions/dashboard/offers/tests/test_views.py index ae7ed2e63e1..6abeba6db86 100644 --- a/ecommerce/extensions/dashboard/offers/tests/test_views.py +++ b/ecommerce/extensions/dashboard/offers/tests/test_views.py @@ -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')) diff --git a/requirements/base.txt b/requirements/base.txt index 54e136be111..b3cb7f24a04 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -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 diff --git a/requirements/dev.txt b/requirements/dev.txt index 323b9d73ffd..fc0a607d5e2 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -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 diff --git a/requirements/production.txt b/requirements/production.txt index bdb4bdd0fc8..77588b6bb8d 100644 --- a/requirements/production.txt +++ b/requirements/production.txt @@ -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 diff --git a/requirements/test.txt b/requirements/test.txt index a95a4e6975f..747fb450096 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -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