mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 19:49:19 +02:00
See #170: updates to upload API to support channels publishing
This commit is contained in:
parent
e80eb3eb3e
commit
c94d9214ec
13 changed files with 895 additions and 104 deletions
|
@ -204,21 +204,23 @@ def test_user_get_quota_status(factories, preferences, mocker):
|
|||
mocker.patch(
|
||||
"funkwhale_api.federation.models.Actor.get_current_usage",
|
||||
return_value={
|
||||
"total": 10 * 1000 * 1000,
|
||||
"total": 15 * 1000 * 1000,
|
||||
"pending": 1 * 1000 * 1000,
|
||||
"skipped": 2 * 1000 * 1000,
|
||||
"errored": 3 * 1000 * 1000,
|
||||
"finished": 4 * 1000 * 1000,
|
||||
"draft": 5 * 1000 * 1000,
|
||||
},
|
||||
)
|
||||
assert user.get_quota_status() == {
|
||||
"max": 66,
|
||||
"remaining": 56,
|
||||
"current": 10,
|
||||
"remaining": 51,
|
||||
"current": 15,
|
||||
"pending": 1,
|
||||
"skipped": 2,
|
||||
"errored": 3,
|
||||
"finished": 4,
|
||||
"draft": 5,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue