Newer
Older
import pytest
@pytest.mark.skip(reason="Refactoring in progress")
def test_can_bind_import_batch_to_request(factories):
# when we create the import, we consider the request as accepted
batch = factories["music.ImportBatch"](import_request=request)
# now, the batch is finished, therefore the request status should be
# imported
batch.status = "finished"
batch.save(update_fields=["status"])