From 1c729a15b7cc61772804a847bda950104d5cd003 Mon Sep 17 00:00:00 2001 From: iameraj Date: Thu, 8 Feb 2024 16:24:50 +0530 Subject: [PATCH] custom test runner --- app/myproject/testRunner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/myproject/testRunner.py b/app/myproject/testRunner.py index 63bfe01..1526165 100644 --- a/app/myproject/testRunner.py +++ b/app/myproject/testRunner.py @@ -1,7 +1,8 @@ from django.test.runner import DiscoverRunner -from termcolor import colored +from termcolor import colored from unittest import TestResult + class CustomTestRunner(DiscoverRunner): def run_suite(self, suite, **kwargs): # Get the number of tests in the suite @@ -27,4 +28,4 @@ def run_suite(self, suite, **kwargs): else: print(colored("Failed", "red")) - return result + return result