mirror of
https://github.com/matomo-org/matomo-icons.git
synced 2024-09-19 17:03:45 +02:00
code style
This commit is contained in:
parent
0d973094bd
commit
a39172660a
1 changed files with 3 additions and 3 deletions
6
tests.py
6
tests.py
|
@ -15,14 +15,14 @@
|
||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
from subprocess import Popen, PIPE
|
||||||
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import yaml
|
import yaml
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from subprocess import Popen, PIPE
|
|
||||||
from urllib.parse import urlparse
|
|
||||||
|
|
||||||
ignored_source_files = [
|
ignored_source_files = [
|
||||||
"src/flags/un.svg",
|
"src/flags/un.svg",
|
||||||
|
@ -208,6 +208,7 @@ def test_if_all_search_and_social_sites_have_an_icon():
|
||||||
look_for_search_and_social_icon(load_yaml(searchEnginesFile), "searchengines", "src/searchEngines/")
|
look_for_search_and_social_icon(load_yaml(searchEnginesFile), "searchengines", "src/searchEngines/")
|
||||||
look_for_search_and_social_icon(load_yaml(socialsEnginesFile), "socials", "src/socials/")
|
look_for_search_and_social_icon(load_yaml(socialsEnginesFile), "socials", "src/socials/")
|
||||||
|
|
||||||
|
|
||||||
def test_if_there_are_icons_for_all_device_detector_categories():
|
def test_if_there_are_icons_for_all_device_detector_categories():
|
||||||
process = Popen(["php", "devicedetector.php"], stdout=PIPE)
|
process = Popen(["php", "devicedetector.php"], stdout=PIPE)
|
||||||
(output, err) = process.communicate()
|
(output, err) = process.communicate()
|
||||||
|
@ -221,7 +222,6 @@ def test_if_there_are_icons_for_all_device_detector_categories():
|
||||||
slug = code
|
slug = code
|
||||||
found = False
|
found = False
|
||||||
for filetype in ["svg", "png", "gif", "jpg", "ico"]:
|
for filetype in ["svg", "png", "gif", "jpg", "ico"]:
|
||||||
# print("src/{type}/{code}.{ext}".format(type=name, code=code, ext=filetype))
|
|
||||||
if os.path.isfile("src/{type}/{slug}.{ext}".format(type=name, slug=slug, ext=filetype)):
|
if os.path.isfile("src/{type}/{slug}.{ext}".format(type=name, slug=slug, ext=filetype)):
|
||||||
found = True
|
found = True
|
||||||
if not found:
|
if not found:
|
||||||
|
|
Loading…
Reference in a new issue