tests: Patch webbrowser.open on session level

Closes #7014
This commit is contained in:
David de la Iglesia Castro
2021-11-23 22:08:21 +05:45
committed by Saugat Pachhai
parent 568abb3e28
commit fc7caa487f
+6
View File
@@ -178,3 +178,9 @@ def custom_template(tmp_dir, dvc):
scriptify_fixture = pytest.fixture(lambda: scriptify, name="scriptify")
@pytest.fixture(scope="session", autouse=True)
def webbrowser_open(session_mocker):
session_mocker.patch("dvc.repo.live.webbrowser_open")
session_mocker.patch("webbrowser.open")