Skip to content

Commit 87a8709

Browse files
author
Edward J M Easton
committed
Added test for out-of-process pyramid server
1 parent 9b34758 commit 87a8709

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pytest-pyramid-server/tests/integration/test_pyramid_server.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from pytest_pyramid_server import InlinePyramidTestServer
3+
from pytest_pyramid_server import InlinePyramidTestServer, PyramidTestServer
44

55
CONFIG_DIR = os.path.dirname(__file__) + '/config'
66

@@ -11,3 +11,11 @@ def test_InlinePyramidTestServer():
1111
assert ipts.check_server_up()
1212
ipts.kill()
1313
assert not ipts.check_server_up()
14+
15+
16+
def test_PyramidTestServer():
17+
pts = PyramidTestServer(config_dir=CONFIG_DIR)
18+
pts.start()
19+
assert pts.check_server_up()
20+
pts.kill()
21+
assert not pts.check_server_up()

0 commit comments

Comments
 (0)