Merge pull request #125 from Orange-OpenSource/feature/add-integ-test-cookie-file

Add test integ for input cookie file
This commit is contained in:
Fabrice Reix 2021-01-11 19:12:08 +01:00 committed by GitHub
commit d8b01b928e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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