Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
81cbe5ea
Commit
81cbe5ea
authored
Feb 02, 2016
by
Ignacio Corcuera
Browse files
Test Changed
parent
ab2c1f73
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/blueprints_test/__init__.py
View file @
81cbe5ea
...
...
@@ -64,15 +64,16 @@ class BlueprintsTest(TestCase):
assert
"@context"
in
resp
.
json
def
test_headers
(
self
):
for
i
,
j
in
product
([
"/api/plugins/?nothing="
,
"/api/?i=test&"
]):
resp
=
self
.
client
.
get
(
"%s"
%
(
i
))
assert
"@context"
in
resp
.
json
resp
=
self
.
client
.
get
(
"%s&%s=0"
%
(
i
,
j
))
assert
"@context"
in
resp
.
json
resp
=
self
.
client
.
get
(
"%s&%s=1"
%
(
i
,
j
))
assert
"@context"
not
in
resp
.
json
resp
=
self
.
client
.
get
(
"%s&%s=true"
%
(
i
,
j
))
assert
"@context"
not
in
resp
.
json
i
=
[
"/api/plugins/?nothing="
]
j
=
[
"/api/?i=test&"
]:
resp
=
self
.
client
.
get
(
"%s"
%
(
i
))
assert
"@context"
in
resp
.
json
resp
=
self
.
client
.
get
(
"%s&%s=0"
%
(
i
,
j
))
assert
"@context"
in
resp
.
json
resp
=
self
.
client
.
get
(
"%s&%s=1"
%
(
i
,
j
))
assert
"@context"
not
in
resp
.
json
resp
=
self
.
client
.
get
(
"%s&%s=true"
%
(
i
,
j
))
assert
"@context"
not
in
resp
.
json
def
test_detail
(
self
):
""" Show only one plugin"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment