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
94c9b901
Commit
94c9b901
authored
Aug 12, 2018
by
Jelle van der Waa
🚧
Browse files
packages: test sort parameter for search
parent
2706d6eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/tests.py
View file @
94c9b901
...
...
@@ -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_sort
(
self
):
response
=
self
.
client
.
get
(
'/packages/?sort=pkgname'
)
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
)
...
...
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