Skip to content

Commit b9c8eed

Browse files
committed
💚 update unit test case and view
1 parent 595a7c2 commit b9c8eed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

polls/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def choice_func(row):
242242
initializers=[None, choice_func],
243243
mapdicts=[
244244
["question_text", "pub_date", "slug"],
245-
["question", "choice_text", "votes"],
245+
{"Question": "question", "Choice": "choice_text", "Votes": "votes"},
246246
],
247247
)
248248
return redirect("handson_view")

testResponse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def test_exchange(self):
178178
class DatabaseOperationsTestCase(TestCase):
179179
def setUp(self):
180180
self.testfile = "sample-data.xls"
181+
self.maxDiff = None
181182
Question.objects.all().delete()
182183
Choice.objects.all().delete()
183184

0 commit comments

Comments
 (0)