Permalink
Browse files

add tests/unit/progressbar/test_monitor.py

  • Loading branch information...
TaiSakuma committed Feb 10, 2019
1 parent 0228517 commit 901a689b1625918fe976682f97cfd05762441da1
Showing with 27 additions and 0 deletions.
  1. +27 −0 tests/unit/progressbar/test_monitor.py
@@ -0,0 +1,27 @@
# Tai Sakuma <tai.sakuma@gmail.com>
import pytest

from alphatwirl.progressbar import BProgressMonitor, NullProgressMonitor, ProgressMonitor

##__________________________________________________________________||
def build_BProgressMonitor():
return BProgressMonitor(presentation=None)

def build_ProgressMonitor():
return ProgressMonitor(presentation=None)

def build_NullProgressMonitor():
return NullProgressMonitor()

builds = [build_BProgressMonitor, build_ProgressMonitor, build_NullProgressMonitor]
build_ids = ['BProgressMonitor', 'ProgressMonitor', 'NullProgressMonitor']

##__________________________________________________________________||
@pytest.mark.parametrize('build', builds, ids=build_ids)
def test_monitor(build):
obj = build()
obj.begin()
obj.createReporter()
obj.end()

##__________________________________________________________________||

0 comments on commit 901a689

Please sign in to comment.