Skip to content

Commit a0ee00d

Browse files
committed
Add test placeholders
1 parent cc0a561 commit a0ee00d

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed

styleguide_example/files/tests/__init__.py

Whitespace-only changes.

styleguide_example/files/tests/flows/__init__.py

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from django.test import TestCase
2+
3+
4+
class DirectUploadApiTests(TestCase):
5+
"""
6+
We want to test the following:
7+
8+
1. A start-upload-finish cycle, where we patch the presign generation with local upload storage.
9+
"""
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from django.test import TestCase
2+
3+
4+
class StandardUploadApiTests(TestCase):
5+
"""
6+
We want to test the following general cases:
7+
8+
1. Upload a file, below the size limit, assert models gets created accordingly.
9+
1. Upload a file, above the size limit (patch settings), assert API error, nothing gets created.
10+
"""
11+
12+
13+
class StandardUploadAdminTests(TestCase):
14+
"""
15+
We want to test the following general cases:
16+
17+
File within size limit:
18+
19+
1. Create a new file via the Django admin, assert everything gets created (we are using services there).
20+
2. Update an existing file via the Django admin, assert everything gets updated (we are using services there).
21+
22+
File not within size limit:
23+
24+
1. Create a new file via the Django admin, assert error, nothing gets created.
25+
2. Update an existing fila via the Django admin, assert error, nothing gets created.
26+
"""

0 commit comments

Comments
 (0)