mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
chore(deps): bump pre-commit tools/libs
Prep for python 3.12 Reformat files with latest pre-commit tools Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
parent
3220cf886e
commit
c6a530f24f
28 changed files with 33 additions and 12 deletions
|
@ -37,6 +37,7 @@ then clears the database for each test function run in that module.
|
|||
It is done this way because migration has a large cost; migrating
|
||||
ahead of each function takes too long when compared to this method.
|
||||
"""
|
||||
|
||||
import os
|
||||
import pathlib
|
||||
from multiprocessing import Lock
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
""" A test suite used to test HTML renders in different cases. """
|
||||
|
||||
import hashlib
|
||||
import os
|
||||
import tempfile
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
""" Test our l10n module. """
|
||||
|
||||
from aurweb import config, filters, l10n
|
||||
from aurweb.testing.requests import Request
|
||||
|
||||
|
|
|
@ -8,8 +8,6 @@ from aurweb.models.package import Package
|
|||
from aurweb.models.package_base import PackageBase
|
||||
from aurweb.models.user import User
|
||||
|
||||
user = pkgbase = package = None
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def setup(db_test):
|
||||
|
|
|
@ -144,9 +144,11 @@ def requests(
|
|||
pkgreq = db.create(
|
||||
PackageRequest,
|
||||
ReqTypeID=DELETION_ID,
|
||||
User=maintainer2
|
||||
if packages[i].PackageBase.Maintainer.Username == "test_maintainer2"
|
||||
else user,
|
||||
User=(
|
||||
maintainer2
|
||||
if packages[i].PackageBase.Maintainer.Username == "test_maintainer2"
|
||||
else user
|
||||
),
|
||||
PackageBase=packages[i].PackageBase,
|
||||
PackageBaseName=packages[i].Name,
|
||||
Comments=f"Deletion request for pkg_{i}",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
""" Test our Session model. """
|
||||
|
||||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue