mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 09:44:22 +03:00
Add test integ for input cookie file
This commit is contained in:
parent
9d78bd2bd0
commit
37710d2523
1
integration/tests/cookie_file.exit
Normal file
1
integration/tests/cookie_file.exit
Normal file
@ -0,0 +1 @@
|
||||
0
|
1
integration/tests/cookie_file.html
Normal file
1
integration/tests/cookie_file.html
Normal file
@ -0,0 +1 @@
|
||||
<div class="hurl-file"><div class="hurl-entry"><div class="request"><span class="line"><span class="method">GET</span> <span class="url">http://localhost:8000/cookie_file</span></span></div></div><span class="line"></span></div>
|
2
integration/tests/cookie_file.hurl
Normal file
2
integration/tests/cookie_file.hurl
Normal file
@ -0,0 +1,2 @@
|
||||
GET http://localhost:8000/cookie_file
|
||||
|
1
integration/tests/cookie_file.json
Normal file
1
integration/tests/cookie_file.json
Normal file
@ -0,0 +1 @@
|
||||
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/cookie_file"}}]}
|
1
integration/tests/cookie_file.options
Normal file
1
integration/tests/cookie_file.options
Normal file
@ -0,0 +1 @@
|
||||
--cookie cookie_file.cookies
|
13
integration/tests/cookie_file.py
Normal file
13
integration/tests/cookie_file.py
Normal file
@ -0,0 +1,13 @@
|
||||
from flask import request, make_response
|
||||
from tests import app
|
||||
|
||||
|
||||
@app.route("/cookie_file")
|
||||
def cookie_file():
|
||||
assert request.cookies['cookie1'] == 'valueA'
|
||||
return ''
|
||||
|
||||
|
||||
|
||||
|
||||
|
2
integration/tests/cookie_file.txt
Normal file
2
integration/tests/cookie_file.txt
Normal file
@ -0,0 +1,2 @@
|
||||
localhost TRUE / FALSE 0 cookie1 valueA
|
||||
|
Loading…
Reference in New Issue
Block a user