From 8a582e7a0fc89fcac4cc042d1f0cafb25f1e8fbd Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 10 Jan 2016 12:01:39 +0000 Subject: [PATCH] Fixed call to test file --- scripts/check-coverage.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/check-coverage.py b/scripts/check-coverage.py index b799408..136417f 100755 --- a/scripts/check-coverage.py +++ b/scripts/check-coverage.py @@ -1,11 +1,12 @@ #!/usr/bin/env python3 import coverage -import subprocess +import os RED = "\033[31m" GREEN = "\033[32m" YELLOW = "\033[33m" NORMAL = "\033[0m" + PERCENTAGE = 95 cov = coverage.Coverage( @@ -15,7 +16,7 @@ cov = coverage.Coverage( cov.start() print(YELLOW + "Running Tests..." + NORMAL) -subprocess.check_output(["manage.py", "test"]) +os.system('manage.py test') cov.stop() print(YELLOW + "Collecting Coverage..." + NORMAL)