Add test integ for input cookie file

This commit is contained in:
Fabrice Reix 2021-01-11 19:05:33 +01:00
parent 9d78bd2bd0
commit 37710d2523
7 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1 @@
0

View 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>

View File

@ -0,0 +1,2 @@
GET http://localhost:8000/cookie_file

View File

@ -0,0 +1 @@
{"entries":[{"request":{"method":"GET","url":"http://localhost:8000/cookie_file"}}]}

View File

@ -0,0 +1 @@
--cookie cookie_file.cookies

View 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 ''

View File

@ -0,0 +1,2 @@
localhost TRUE / FALSE 0 cookie1 valueA