Decrease num_tabs for test_add_remove_tab_benchmark

With 100 tabs, this takes 28s on my machine, and sometimes >90s on Travis.
With 70 tabs, it's down to 14s.
This commit is contained in:
Florian Bruhin 2018-10-06 12:27:24 +02:00
parent 4b76dc56e1
commit eb2ec3df58

View File

@ -142,7 +142,7 @@ class TestTabWidget:
widget.addTab(fake_web_tab(), 'foobar' + str(i))
assert not widget.tabBar().isVisible()
@pytest.mark.parametrize("num_tabs", [4, 100])
@pytest.mark.parametrize("num_tabs", [4, 70])
@pytest.mark.parametrize("rev", [True, False])
def test_add_remove_tab_benchmark(self, benchmark, widget,
qtbot, fake_web_tab, num_tabs, rev):