We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fec68ae commit 5485227Copy full SHA for 5485227
cirq-web/cirq_web/widget_test.py
@@ -12,7 +12,10 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
+import os
16
from pathlib import Path
17
+from unittest import mock
18
+
19
import cirq_web
20
21
@@ -50,6 +53,7 @@ def test_repr_html(tmpdir):
50
53
assert remove_whitespace(expected) == remove_whitespace(actual)
51
54
52
55
56
+@mock.patch.dict(os.environ, {"BROWSER": "true"})
57
def test_generate_html_file_with_browser(tmpdir):
58
# # Reset the path so the files are accessible
59
cirq_web.widget._DIST_PATH = Path(tmpdir) / "dir"
0 commit comments