Skip to content

Commit af18fcf

Browse files
committed
Add type hints to tests
1 parent 26848a5 commit af18fcf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_wifi_essid.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class TestWifiESSID(unittest.TestCase):
2020
Unit tests for the 'WifiESSID' class.
2121
"""
2222

23-
def setUp(self):
23+
def setUp(self) -> None:
2424
self.fake = Faker()
2525
self.fake.add_provider(WifiESSID)
2626

27-
def test_if_string(self):
27+
def test_if_string(self) -> None:
2828
"""
2929
Tests if the values returned by the fake Wi-Fi ESSID generators are
3030
strings.
@@ -36,7 +36,7 @@ def test_if_string(self):
3636
self.assertTrue(isinstance(self.fake.bbox_default_essid(), str))
3737
self.assertTrue(isinstance(self.fake.wifi_essid(), str))
3838

39-
def test_common_essid(self):
39+
def test_common_essid(self) -> None:
4040
"""
4141
Tests if the 'common_essid()' method returns values from
4242
'COMMON_ESSIDS' as expected.
@@ -45,7 +45,7 @@ def test_common_essid(self):
4545
for _ in range(10):
4646
self.assertIn(self.fake.common_essid(), COMMON_ESSIDS)
4747

48-
def test_upc_default_essid(self):
48+
def test_upc_default_essid(self) -> None:
4949
"""
5050
Tests if the values returned by the 'upc_default_essid()' method match
5151
the UPC ESSIDs' regex.
@@ -56,7 +56,7 @@ def test_upc_default_essid(self):
5656
for _ in range(10):
5757
self.assertTrue(re.match(regex, self.fake.upc_default_essid()))
5858

59-
def test_bbox_default_essid(self):
59+
def test_bbox_default_essid(self) -> None:
6060
"""
6161
Tests if the values returned by the 'bbox_default_essid()' method match
6262
the Bbox ESSIDs' regex.

0 commit comments

Comments
 (0)