server: implement 'permanently failed' state · mas15/pytest-httpserver@7b2fb1f · GitHub
Skip to content

Commit 7b2fb1f

Browse files
committed
server: implement 'permanently failed' state
This states that at least one request did not meet the requiremenets for the ordered handlers. Eg. we waited for a GET /example request to be the *first* request, but the client sent a GET /foobar request, then we should pull the handbrake and stop serving further requests. The idea behing this is to avoid the situation having the 2nd ordered expectation pass while the 1st failed.
1 parent ef79506 commit 7b2fb1f

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

pytest_httpserver/httpserver.py

Lines changed: 11 additions & 2 deletions

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="pytest_httpserver",
10-
version="0.2",
10+
version="0.1",
1111
url="https://www.github.com/csernazs/pytest-httpserver",
1212
packages=find_packages(),
1313
author="Zsolt Cserna",

tests/test_oneshot.py

Lines changed: 3 additions & 1 deletion

0 commit comments

Comments
 (0)