mirror of https://github.com/tqdm/tqdm.git
abstract tests, enable full coverage
This commit is contained in:
parent
90fa7c0d3a
commit
e5e7f8f66c
|
@ -2,9 +2,5 @@
|
|||
branch = True
|
||||
omit =
|
||||
tqdm/tests/*
|
||||
tqdm/_tqdm_notebook.py
|
||||
tqdm/_tqdm_gui.py
|
||||
tqdm/notebook.py
|
||||
tqdm/gui.py
|
||||
[report]
|
||||
show_missing = True
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
from tqdm.notebook import tqdm as tqdm_notebook
|
||||
from tests_tqdm import with_setup, pretest, posttest
|
||||
|
||||
|
||||
@with_setup(pretest, posttest)
|
||||
def test_notebook_disabled_description():
|
||||
"""Test that set_description works for disabled tqdm_notebook"""
|
||||
with tqdm_notebook(1, disable=True) as t:
|
||||
t.set_description("description")
|
|
@ -1890,11 +1890,3 @@ def test_float_progress():
|
|||
assert not w
|
||||
assert w
|
||||
assert "clamping frac" in str(w[-1].message)
|
||||
|
||||
|
||||
@with_setup(pretest, posttest)
|
||||
def test_notebook_disabled_description():
|
||||
"""Test that set_description works for disabled tqdm_notebook"""
|
||||
from tqdm import tqdm_notebook
|
||||
with tqdm_notebook(1, disable=True) as t:
|
||||
t.set_description("description")
|
||||
|
|
Loading…
Reference in New Issue