feat: add basic support for progress indicators
This commit is contained in:
parent
110ff69d6d
commit
4b9db13b8f
9 changed files with 248 additions and 1 deletions
27
tests/test_progress.py
Normal file
27
tests/test_progress.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
|
||||
from unittest import TestCase
|
||||
|
||||
from wuttjamaican import progress as mod
|
||||
|
||||
|
||||
class TestProgressBase(TestCase):
|
||||
|
||||
def test_basic(self):
|
||||
|
||||
# sanity / coverage check
|
||||
prog = mod.ProgressBase('testing', 2)
|
||||
prog.update(1)
|
||||
prog.update(2)
|
||||
prog.finish()
|
||||
|
||||
|
||||
class TestConsoleProgress(TestCase):
|
||||
|
||||
def test_basic(self):
|
||||
|
||||
# sanity / coverage check
|
||||
prog = mod.ConsoleProgress('testing', 2)
|
||||
prog.update(1)
|
||||
prog.update(2)
|
||||
prog.finish()
|
Loading…
Add table
Add a link
Reference in a new issue