mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
4b0cb0721d
commit
2d0e09cd63
9 changed files with 398 additions and 195 deletions
|
@ -58,6 +58,7 @@ import aurweb.db
|
|||
from aurweb import initdb, logging, testing
|
||||
from aurweb.testing.email import Email
|
||||
from aurweb.testing.filelock import FileLock
|
||||
from aurweb.testing.git import GitRepository
|
||||
|
||||
logger = logging.get_logger(__name__)
|
||||
|
||||
|
@ -211,3 +212,8 @@ def db_test(db_session: scoped_session) -> None:
|
|||
session via aurweb.db.get_session().
|
||||
"""
|
||||
testing.setup_test_db()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def git(tmpdir: py.path.local) -> GitRepository:
|
||||
yield GitRepository(tmpdir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue