From a39172660a63d0ba11ea8f7d4e0aff00e35da3d4 Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Tue, 21 Nov 2017 21:43:07 +0100 Subject: [PATCH] code style --- tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests.py b/tests.py index dfb6220..4d67439 100755 --- a/tests.py +++ b/tests.py @@ -15,14 +15,14 @@ import json import sys from glob import glob +from subprocess import Popen, PIPE +from urllib.parse import urlparse import hashlib import os import re import yaml from PIL import Image -from subprocess import Popen, PIPE -from urllib.parse import urlparse ignored_source_files = [ "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(socialsEnginesFile), "socials", "src/socials/") + def test_if_there_are_icons_for_all_device_detector_categories(): process = Popen(["php", "devicedetector.php"], stdout=PIPE) (output, err) = process.communicate() @@ -221,7 +222,6 @@ def test_if_there_are_icons_for_all_device_detector_categories(): slug = code found = False 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)): found = True if not found: