Skip to content

Commit 62b9b92

Browse files
committed
Remove unused import and add docstring to TestBannerDictSchema
1 parent 64b6497 commit 62b9b92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unittests/test_product_announcements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from unittest.mock import MagicMock
21

32
from django.http import HttpRequest, HttpResponse
43
from django.test import SimpleTestCase
@@ -7,12 +6,12 @@
76
ErrorPageProductAnnouncement,
87
LargeScanSizeProductAnnouncement,
98
LongRunningRequestProductAnnouncement,
10-
ProductAnnouncementManager,
119
ScanTypeProductAnnouncement,
1210
)
1311

1412

1513
class _SessionDict(dict):
14+
1615
"""Minimal session stand-in that supports .get/.pop/[] like Django sessions."""
1716

1817

@@ -188,6 +187,7 @@ def test_api_path_for_supported_scan_type(self):
188187

189188

190189
class TestBannerDictSchema(SimpleTestCase):
190+
191191
"""Verify every banner stored in the session has the expected keys."""
192192

193193
EXPECTED_KEYS = {"source", "message", "style", "url", "link_text", "expanded_html"}

0 commit comments

Comments
 (0)