Skip to content

Commit

Permalink
Fix test to not open user's web browser
Browse files Browse the repository at this point in the history
  • Loading branch information
olsen232 committed Jul 18, 2023
1 parent b326c00 commit a7d752d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import string
import time
from pathlib import Path
import webbrowser

import html5lib
import pytest
Expand Down Expand Up @@ -2099,7 +2100,11 @@ def test_attached_files_patch(data_archive, cli_runner):
}


def test_load_user_provided_html_template(data_archive, cli_runner):
def test_load_user_provided_html_template(data_archive, cli_runner, monkeypatch):
def noop(*args, **kwargs):
pass

monkeypatch.setattr(webbrowser, "open_new", noop)
with data_archive("points") as repo_path:
r = cli_runner.invoke(
[
Expand Down

0 comments on commit a7d752d

Please sign in to comment.