Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 1786257

Browse files
committed
Fix: Update newer runestone preview instead of the deprecated runestone serve.
1 parent 8783185 commit 1786257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runestone/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ def setUpModule(self):
184184
"Unknown error while trying to kill stale runestone server"
185185
)
186186

187-
# Run the server. Simply calling ``runestone serve`` fails, since the process killed isn't the actual server, but probably a setuptools-created launcher.
187+
# Run the server. Simply calling ``runestone preview`` fails, since the process killed isn't the actual server, but probably a setuptools-created launcher.
188188
self.runestone_server = subprocess.Popen(
189-
[sys.executable, "-m", "runestone", "serve", "--port", PORT]
189+
[sys.executable, "-m", "runestone", "preview", "--port", PORT]
190190
)
191191

192192
# Testing time in dominated by browser startup/shutdown. So, simply run all tests in a module in a single browser instance to speed things up. See ``RunestoneTestCase.setUp`` for additional code to (mostly) clear the browser between tests.

0 commit comments

Comments
 (0)