Skip to content

Commit c99817f

Browse files
committed
Fix tests on windows, maybe.
1 parent e3f10c0 commit c99817f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
with unittest.mock.patch("sys.__stdout__", None):
66
import textual_image.renderable
77
import textual_image._terminal
8-
import textual_image.widget
98

109
# Hardcode the cell size - it throws on windows.
1110
setattr(textual_image._terminal.get_cell_size, "_result", textual_image._terminal.CellSize(10, 20))
1211

12+
import textual_image.widget
13+
1314
import netbook
1415

1516
import nbformat

tests/test_cell.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ async def test_output_scroll_collapse(pilot_nb):
5151

5252
async def test_run_cell(pilot, mocker):
5353
app: netbook.JupyterTextualApp = pilot.app
54+
await pilot.pause()
5455
poller = mocker.patch("zmq.asyncio.Poller")
5556
poller.return_value.poll = mocker.AsyncMock(return_value={app.kernel_client.iopub_channel.socket: 1})
5657
app.kernel_client.execute.return_value = "id1"

0 commit comments

Comments
 (0)