change(rendercomment): converted to use aurweb.db ORM

- Added aurweb.util.git_search.
    - Decoupled away from rendercomment for easier testability.
- Added aurweb.testing.git.GitRepository.
- Added templates/testing/{PKGBUILD,SRCINFO}.j2.
- Added aurweb.testing.git.GitRepository + `git` pytest fixture

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-17 06:20:50 -08:00
parent 4b0cb0721d
commit 2d0e09cd63
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
9 changed files with 398 additions and 195 deletions

View file

@ -0,0 +1,10 @@
pkgbase = {{ pkg.PackageBase.name }}
pkgver = {{ pkg.Version }}
pkgrel = 1
pkgdesc = {{ pkg.Description }}
url = {{ pkg.URL }}
arch='any'
license = {{ pkg.package_licenses | join(", ", attribute="License.Name") }}
depends = {{ pkg.package_dependencies | join(", ", attribute="DepName") }}
pkgname = {{ pkg.Name }}