File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
styleguide_example/files/tests/flows Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 11from django .test import TestCase
2+ from django .urls import reverse
3+
4+ from rest_framework .test import APIClient
25
36
47class DirectUploadApiTests (TestCase ):
@@ -7,3 +10,15 @@ class DirectUploadApiTests(TestCase):
710
811 1. A start-upload-finish cycle, where we patch the presign generation with local upload storage.
912 """
13+ def setUp (self ):
14+ self .client = APIClient ()
15+
16+ self .direct_upload_start_url = reverse ("api:files:upload:direct:start" )
17+ self .direct_upload_finish_url = reverse ("api:files:upload:direct:finish" )
18+ self .direct_upload_local_url = lambda file : reverse (
19+ "api:files:upload:direct:local" ,
20+ kwargs = {"file_id" : str (file .id )}
21+ )
22+
23+ def test_direct_upload (self ):
24+ pass
You can’t perform that action at this time.
0 commit comments