diff --git a/.coveragerc b/.coveragerc index 150c3d15..6f24cb7a 100644 --- a/.coveragerc +++ b/.coveragerc @@ -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 diff --git a/tqdm/tests/tests_notebook.py b/tqdm/tests/tests_notebook.py new file mode 100644 index 00000000..3af992f0 --- /dev/null +++ b/tqdm/tests/tests_notebook.py @@ -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") diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py index be24db43..e76970b4 100644 --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -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")