housekeep: TU rename - Comments

Changes to comments, function descriptions, etc.

Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
moson 2023-09-10 10:01:21 +02:00
parent 61f1e5b399
commit 87f6791ea8
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
15 changed files with 48 additions and 53 deletions

View file

@ -120,9 +120,9 @@ def pm_user():
with db.begin():
pm_user = db.create(
User,
Username="test_tu",
Username="test_pm",
Email="test_tu@example.org",
RealName="Test TU",
RealName="Test PM",
Passwd="testPassword",
AccountType=pm_type,
)
@ -603,7 +603,7 @@ def test_package_authenticated_maintainer(
for expected_text in expected:
assert expected_text in resp.text
# make sure we don't have these. Only for TUs/Devs
# make sure we don't have these. Only for PMs/Devs
not_expected = [
"1 pending request",
"Delete Package",
@ -1632,7 +1632,7 @@ def test_packages_post_delete(
expected = "You do not have permission to delete packages."
assert errors[0].text.strip() == expected
# Now, let's switch over to making the requests as a TU.
# Now, let's switch over to making the requests as a PM.
# However, this next request will be rejected due to supplying
# an invalid package ID.
pm_cookies = {"AURSID": pm_user.login(Request(), "testPassword")}