weblate/ci/migrate-scripts/assert-billing.py
Michal Čihař 87d457ab16 feat: migrate billing.view permission to billing ownership
The permission model duplicated access granted by billing ownership.

Fixes #17277
2026-02-16 14:36:12 +01:00

15 lines
376 B
Python

# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Billing migration testing."""
from weblate.trans.models import Project
project = Project.objects.get(pk=1)
# Verify that two users were correctly migrated
assert set(project.billing.owners.values_list("username", flat=True)) == {
"billingtest1",
"billingtest2",
}