Skip to content

Commit

Permalink
Initial direct upload test
Browse files Browse the repository at this point in the history
  • Loading branch information
LinaSSavova committed Jul 21, 2022
1 parent 39df660 commit b7d0312
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions styleguide_example/files/tests/flows/test_direct_upload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from django.test import TestCase
from django.urls import reverse

from rest_framework.test import APIClient


class DirectUploadApiTests(TestCase):
Expand All @@ -7,3 +10,15 @@ class DirectUploadApiTests(TestCase):
1. A start-upload-finish cycle, where we patch the presign generation with local upload storage.
"""
def setUp(self):
self.client = APIClient()

self.direct_upload_start_url = reverse("api:files:upload:direct:start")
self.direct_upload_finish_url = reverse("api:files:upload:direct:finish")
self.direct_upload_local_url = lambda file: reverse(
"api:files:upload:direct:local",
kwargs={"file_id": str(file.id)}
)

def test_direct_upload(self):
pass

0 comments on commit b7d0312

Please sign in to comment.