mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
test: test that /packages/{name} produces the package's description
This commit fixes two of our tests in test_templates.py to go along with our new template modifications, as well as a new test in test_packages_routes.py which constructs two packages belonging to the same package base, then tests that viewing their pages produces their independent descriptions. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
0388b12896
commit
25e05830a6
3 changed files with 47 additions and 3 deletions
|
@ -293,7 +293,7 @@ def test_package_details(user: User, package: Package):
|
|||
"git_clone_uri_anon": GIT_CLONE_URI_ANON,
|
||||
"git_clone_uri_priv": GIT_CLONE_URI_PRIV,
|
||||
"pkgbase": package.PackageBase,
|
||||
"pkg": package,
|
||||
"package": package,
|
||||
"comaintainers": [],
|
||||
}
|
||||
)
|
||||
|
@ -329,7 +329,7 @@ def test_package_details_filled(user: User, package: Package):
|
|||
"git_clone_uri_anon": GIT_CLONE_URI_ANON,
|
||||
"git_clone_uri_priv": GIT_CLONE_URI_PRIV,
|
||||
"pkgbase": package.PackageBase,
|
||||
"pkg": package,
|
||||
"package": package,
|
||||
"comaintainers": [],
|
||||
"licenses": package.package_licenses,
|
||||
"provides": package.package_relations.filter(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue