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
7640c818
Commit
7640c818
authored
Aug 12, 2018
by
Jelle van der Waa
🚧
Browse files
packages: test head/$arch group view
parent
3283144d
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/tests.py
View file @
7640c818
...
...
@@ -62,7 +62,6 @@ class PackageSearchJson(TestCase):
fixtures
=
[
'main/fixtures/arches.json'
,
'main/fixtures/repos.json'
,
'main/fixtures/package.json'
]
def
test_invalid
(
self
):
response
=
self
.
client
.
get
(
'/packages/search/json/'
)
self
.
assertEqual
(
response
.
status_code
,
200
)
...
...
@@ -235,11 +234,19 @@ def test_packages_download(self):
self
.
assertEqual
(
response
.
status_code
,
404
)
# TODO: Figure out how to fake a mirror
def
test_head
(
self
):
response
=
self
.
client
.
head
(
'/packages/core/x86_64/linux/'
)
self
.
assertEqual
(
response
.
status_code
,
200
)
def
test_groups
(
self
):
response
=
self
.
client
.
get
(
'/groups/'
)
self
.
assertEqual
(
response
.
status_code
,
200
)
def
test_groups_detail
(
self
):
def
test_groups_arch
(
self
):
response
=
self
.
client
.
get
(
'/groups/x86_64/'
)
self
.
assertEqual
(
response
.
status_code
,
200
)
def
test_groups_details
(
self
):
response
=
self
.
client
.
get
(
'/groups/x86_64/base/'
)
self
.
assertEqual
(
response
.
status_code
,
404
)
# FIXME: add group fixtures.
...
...
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