abstract tests, enable full coverage

This commit is contained in:
Casper da Costa-Luis 2020-02-16 15:04:46 +00:00
parent 90fa7c0d3a
commit e5e7f8f66c
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
3 changed files with 9 additions and 12 deletions

View File

@ -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

View File

@ -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")

View File

@ -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")