Skip to content

Commit

Permalink
Improve test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Aug 28, 2024
1 parent 77b378d commit 9afb724
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pygmt/tests/test_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,11 @@ class MockIPython:
def __init__(self):
self.config = {"IPKernelApp": True}

# Mock IPython.get_ipython() to return a MockIPython instance.
mock_ipython = MockIPython()

monkeypatch.setattr(IPython, "get_ipython", lambda: mock_ipython)

# Default display method should be "notebook" when an IPython kernel is running.
assert _get_default_display_method() == "notebook"

# PYGMT_USE_EXTERNAL_DISPLAY should not affect notebook display.
Expand Down

0 comments on commit 9afb724

Please sign in to comment.