Skip to content

Commit 9402ba2

Browse files
committed
fix tests
1 parent 38d5769 commit 9402ba2

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

tests/integration/limitations/__init__.py

Lines changed: 0 additions & 19 deletions
This file was deleted.
File renamed without changes.

tests/moks/limitatoins.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from unittest import mock
2+
3+
folder_limit_response = mock.MagicMock()
4+
folder_limit_response.ok = True
5+
folder_limit_response.data.user_limit.remaining_image_count = 0
6+
folder_limit_response.data.project_limit.remaining_image_count = 0
7+
folder_limit_response.data.folder_limit.remaining_image_count = 0
8+
9+
10+
project_limit_response = mock.MagicMock()
11+
project_limit_response.ok = True
12+
project_limit_response.data.user_limit.remaining_image_count = 0
13+
project_limit_response.data.project_limit.remaining_image_count = 0
14+
project_limit_response.data.folder_limit.remaining_image_count = 50000
15+
16+
17+
user_limit_response = mock.MagicMock()
18+
user_limit_response.ok = True
19+
user_limit_response.data.user_limit.remaining_image_count = 0
20+
user_limit_response.data.project_limit.remaining_image_count = 500000
21+
user_limit_response.data.folder_limit.remaining_image_count = 50000

0 commit comments

Comments
 (0)