mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 14:50:19 +00:00
Merge pull request #334 from MerleLiuKun/fix_test_responder_variable
fix variable error at test responder
This commit is contained in:
@@ -854,21 +854,21 @@ def test_stream(api, session):
|
||||
def foo():
|
||||
pass
|
||||
|
||||
res.stream(foo)
|
||||
resp.stream(foo)
|
||||
|
||||
with pytest.raises(AssertionError):
|
||||
|
||||
async def foo():
|
||||
pass
|
||||
|
||||
res.stream(foo)
|
||||
resp.stream(foo)
|
||||
|
||||
with pytest.raises(AssertionError):
|
||||
|
||||
def foo():
|
||||
yield "oopsie"
|
||||
|
||||
res.stream(foo)
|
||||
resp.stream(foo)
|
||||
|
||||
|
||||
def test_empty_req_text(api):
|
||||
|
||||
Reference in New Issue
Block a user