mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 21:12:11 +02:00
Blacked the code
This commit is contained in:
parent
b6fc0051fa
commit
62ca3bd736
279 changed files with 8861 additions and 9527 deletions
|
@ -4,20 +4,20 @@ from django.forms import ValidationError
|
|||
|
||||
|
||||
def test_can_bind_import_batch_to_request(factories):
|
||||
request = factories['requests.ImportRequest']()
|
||||
request = factories["requests.ImportRequest"]()
|
||||
|
||||
assert request.status == 'pending'
|
||||
assert request.status == "pending"
|
||||
|
||||
# when we create the import, we consider the request as accepted
|
||||
batch = factories['music.ImportBatch'](import_request=request)
|
||||
batch = factories["music.ImportBatch"](import_request=request)
|
||||
request.refresh_from_db()
|
||||
|
||||
assert request.status == 'accepted'
|
||||
assert request.status == "accepted"
|
||||
|
||||
# now, the batch is finished, therefore the request status should be
|
||||
# imported
|
||||
batch.status = 'finished'
|
||||
batch.save(update_fields=['status'])
|
||||
batch.status = "finished"
|
||||
batch.save(update_fields=["status"])
|
||||
request.refresh_from_db()
|
||||
|
||||
assert request.status == 'imported'
|
||||
assert request.status == "imported"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue