Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
2706d6eb
Commit
2706d6eb
authored
Aug 12, 2018
by
Jelle van der Waa
🚧
Browse files
packages: Add test for search head request
parent
9fbbdf98
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/tests.py
View file @
2706d6eb
...
...
@@ -163,6 +163,11 @@ def test_filter_packager_unknown(self):
self
.
assertEqual
(
response
.
status_code
,
200
)
self
.
assertIn
(
'5 matching packages found'
,
response
.
content
)
def
test_head
(
self
):
response
=
self
.
client
.
head
(
'/packages/?q=unknown'
)
self
.
assertEqual
(
response
.
status_code
,
200
)
class
OpenSearch
(
TestCase
):
fixtures
=
[
'main/fixtures/arches.json'
,
'main/fixtures/repos.json'
,
'main/fixtures/package.json'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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