Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SkypLabs committed Nov 27, 2024
1 parent 01c618a commit 710aace
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 49 deletions.
82 changes: 41 additions & 41 deletions src/faker_wifi_essid/common_essids.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,45 @@

# Based on https://wigle.net/stats#ssidstats.
COMMON_ESSIDS = (
'3Com',
'Airport_Free_WiFi_AENA',
'AndroidAP',
'AndroidTether',
'eduroam',
'Exhibitor Internet',
'FBI Surveillance Van',
'freeBestBuywifi',
'freebox',
'Free Internet Access',
'Free Public WiFi',
'FRITZ!Box',
'FRITZ!Box Fon WLAN',
'FRITZ!Box Guest Access',
'GetYourOwn',
'get your own WiFi',
'GuestAccess',
'Guest Network',
'GuestWiFi',
'GuestWireless',
'H&M Free WiFi',
'Home Network',
'Home Sweet Home',
'Horizon Wi-Free',
'KFC Free WiFi',
'McDonalds Free WiFi',
'MGMResorts-WiFi',
'Moscow_WiFi_FREE',
'NETGEAR-5G-GUEST',
'Neuf WiFi',
'Nordstrom_Wi-Fi',
'Radisson_Guest',
'Rostelecom',
'SFR WiFi Public',
'Starbucks WiFi',
'Swisscom_Auto_Login',
'visitors',
'Vodafone Homespot',
'Vodafone Hotspot',
'Vodafone-Guest',
'Welcome',
"3Com",
"Airport_Free_WiFi_AENA",
"AndroidAP",
"AndroidTether",
"eduroam",
"Exhibitor Internet",
"FBI Surveillance Van",
"freeBestBuywifi",
"freebox",
"Free Internet Access",
"Free Public WiFi",
"FRITZ!Box",
"FRITZ!Box Fon WLAN",
"FRITZ!Box Guest Access",
"GetYourOwn",
"get your own WiFi",
"GuestAccess",
"Guest Network",
"GuestWiFi",
"GuestWireless",
"H&M Free WiFi",
"Home Network",
"Home Sweet Home",
"Horizon Wi-Free",
"KFC Free WiFi",
"McDonalds Free WiFi",
"MGMResorts-WiFi",
"Moscow_WiFi_FREE",
"NETGEAR-5G-GUEST",
"Neuf WiFi",
"Nordstrom_Wi-Fi",
"Radisson_Guest",
"Rostelecom",
"SFR WiFi Public",
"Starbucks WiFi",
"Swisscom_Auto_Login",
"visitors",
"Vodafone Homespot",
"Vodafone Hotspot",
"Vodafone-Guest",
"Welcome",
)
12 changes: 6 additions & 6 deletions src/faker_wifi_essid/wifi_essid.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@ class WifiESSID(BaseProvider):

def common_essid(self):
"""
Returns a random ESSID from a list of the most
commonly used ones.
Returns a random ESSID from a list of the most commonly used ones.
See https://wigle.net/stats#ssidstats.
"""

return self.random_element(COMMON_ESSIDS)

def upc_default_essid(self):
"""
Generates a random ESSID similar to the default ones
used by UPC.
Generates a random ESSID similar to the default ones used by UPC.
https://deadcode.me/blog/2016/07/01/UPC-UBEE-EVW3226-WPA2-Reversing.html.
"""

return "UPC" + str(self.random_number(7, True))

def bbox_default_essid(self):
"""
Generates a random ESSID similar to the default ones
used by Bouygues Telecom's Bbox.
Generates a random ESSID similar to the default ones used by Bouygues
Telecom's Bbox.
"""

return self.hexify("Bbox-^^^^^^", upper=True)
Expand Down
5 changes: 3 additions & 2 deletions tests/test_wifi_essid.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import unittest

from faker import Faker

from faker_wifi_essid import WifiESSID
from faker_wifi_essid.common_essids import COMMON_ESSIDS

Expand All @@ -25,8 +26,8 @@ def setUp(self):

def test_if_string(self):
"""
Tests if the values returned by the fake Wi-Fi ESSID
generators are strings.
Tests if the values returned by the fake Wi-Fi ESSID generators are
strings.
"""

for _ in range(10):
Expand Down

0 comments on commit 710aace

Please sign in to comment.