Skip to content

Commit 6a5dbc5

Browse files
author
deathaxe
authored
Drop progress bar (#255)
1. Progress is displayed in output panel like any other build system would do. 2. Not visible when running in CI environment.
1 parent 5ed8e7a commit 6a5dbc5

File tree

3 files changed

+0
-30
lines changed

3 files changed

+0
-30
lines changed

unittesting/unit.py

-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from .core import DeferrableTestCase
1414
from .core import DeferringTextTestRunner
1515
from .core import TestLoader
16-
from .utils import ProgressBar
1716
from .utils import reload_package
1817
from .utils import StdioSplitter
1918

@@ -201,8 +200,6 @@ def run_tests(self, stream, package, settings, cleanup_hooks=[]):
201200
settings["deferred"] = False
202201

203202
testRunner = None
204-
progress_bar = ProgressBar("Testing %s" % package)
205-
progress_bar.start()
206203
is_empty_test = False
207204

208205
try:
@@ -254,7 +251,6 @@ def run_tests(self, stream, package, settings, cleanup_hooks=[]):
254251
def cleanup():
255252
if not settings["deferred"] or not testRunner or testRunner.finished:
256253
self.remove_test_modules(package, settings["tests_dir"])
257-
progress_bar.stop()
258254

259255
for hook in cleanup_hooks:
260256
try:

unittesting/utils/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
from .output_panel import OutputPanel
2-
from .progress_bar import ProgressBar
32
from .stdio_splitter import StdioSplitter
43
from .reloader import reload_package
54

65
__all__ = [
76
"OutputPanel",
87
"StdioSplitter",
9-
"ProgressBar",
108
"reload_package"
119
]

unittesting/utils/progress_bar.py

-24
This file was deleted.

0 commit comments

Comments
 (0)