summaryrefslogtreecommitdiff
path: root/pywal
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-23 23:49:28 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-23 23:49:28 +1000
commitc7391d7c92daca262555e18835eb7155b29be087 (patch)
tree2cc53eaacab3da104da14593a9a4d9b173820786 /pywal
parent2bb741f9e11142582928f1fee2b99934945a6614 (diff)
tests: Add .coveragerc
Diffstat (limited to 'pywal')
-rw-r--r--pywal/__main__.py2
-rw-r--r--pywal/colors.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py
index 30e0e40..69908fe 100644
--- a/pywal/__main__.py
+++ b/pywal/__main__.py
@@ -67,7 +67,7 @@ def get_args(args):
def process_args(args):
"""Process args."""
- if not len(sys.argv) > 1: # pragma: no cover
+ if not len(sys.argv) > 1:
print("error: wal needs to be given arguments to run.\n"
" Refer to \"wal -h\" for more info.")
exit(1)
diff --git a/pywal/colors.py b/pywal/colors.py
index a51a0c7..18a237a 100644
--- a/pywal/colors.py
+++ b/pywal/colors.py
@@ -22,7 +22,7 @@ def imagemagick(color_count, img):
def gen_colors(img, color_count):
"""Format the output from imagemagick into a list
of hex colors."""
- if not shutil.which("convert"): # pragma: no cover
+ if not shutil.which("convert"):
print("error: imagemagick not found, exiting...\n"
"error: wal requires imagemagick to function.")
exit(1)