Remove change_qapp_name in test_standarddir
This is already done in conftest.py anyways
This commit is contained in:
parent
56bbd73622
commit
b185e57406
@ -35,19 +35,6 @@ from qutebrowser.utils import standarddir
|
|||||||
pytestmark = pytest.mark.usefixtures('qapp')
|
pytestmark = pytest.mark.usefixtures('qapp')
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
|
||||||
def change_qapp_name(qapp):
|
|
||||||
"""Change the name of the QApplication instance.
|
|
||||||
|
|
||||||
This changes the applicationName for all tests in this module to
|
|
||||||
"qute_test".
|
|
||||||
"""
|
|
||||||
old_name = qapp.applicationName()
|
|
||||||
qapp.setApplicationName('qute_test')
|
|
||||||
yield
|
|
||||||
qapp.setApplicationName(old_name)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def clear_standarddir_cache(monkeypatch):
|
def clear_standarddir_cache(monkeypatch):
|
||||||
"""Make sure the standarddir cache is cleared before/after each test."""
|
"""Make sure the standarddir cache is cleared before/after each test."""
|
||||||
|
Loading…
Reference in New Issue
Block a user