unify file naming
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 496 B |
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 334 B |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
@ -29,7 +29,7 @@ less_important_device_detector_icons:
|
|||
- Assistant
|
||||
- AVH
|
||||
- Axxion
|
||||
- Barnes_&_Noble
|
||||
- Barnes_Noble
|
||||
- BenQ-Siemens
|
||||
- Bird
|
||||
- Black_Fox
|
||||
|
@ -133,7 +133,7 @@ less_important_device_detector_icons:
|
|||
- Lingwin
|
||||
- Logicom
|
||||
- Lumus
|
||||
- M.T.T.
|
||||
- M_T_T_
|
||||
- Majestic
|
||||
- Maze
|
||||
- Mecer
|
||||
|
@ -160,7 +160,7 @@ less_important_device_detector_icons:
|
|||
- Noain
|
||||
- Nomi
|
||||
- Nous
|
||||
- O+
|
||||
- O_
|
||||
- Opsson
|
||||
- Ouki
|
||||
- OUYA
|
||||
|
|
3
tests.py
|
@ -197,11 +197,12 @@ def test_if_there_are_icons_for_all_device_detector_categories(less_important_de
|
|||
process = Popen(["php", "devicedetector.php"], stdout=PIPE)
|
||||
(output, err) = process.communicate()
|
||||
process.wait()
|
||||
regex = re.compile(r"[^a-z0-9_\-äöü]+",re.IGNORECASE)
|
||||
categories = json.loads(output)
|
||||
for icontype, category in categories.items():
|
||||
for code in category:
|
||||
if icontype == "brand":
|
||||
slug = category[code].replace(" ", "_")
|
||||
slug = regex.sub("_", category[code])
|
||||
else:
|
||||
slug = code
|
||||
found = False
|
||||
|
|