Skip to content

Commit a7588ef

Browse files
author
MrButtCode
committed
refactor: remove orphaned mock_decorator and unused imports
1 parent 6eeb822 commit a7588ef

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

tests/test_upload/test_controllers.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import base64
2-
from functools import wraps
32
from importlib import reload
43
from io import BytesIO
54
from unittest import mock
@@ -12,19 +11,6 @@
1211
from tests.base import BaseTestCase, MockResponse
1312

1413

15-
def mock_decorator(f):
16-
"""
17-
Passthrough replacement for login_required in unit tests.
18-
19-
When mock.patch sets side_effect=mock_decorator, Python calls
20-
mock_decorator(f) at decoration time and receives this wrapper,
21-
which skips all authentication logic and delegates directly to f.
22-
"""
23-
@wraps(f)
24-
def decorated_function(*args, **kwargs):
25-
return f(*args, **kwargs)
26-
return decorated_function
27-
2814
class TestControllers(BaseTestCase):
2915
"""Test upload-related cases."""
3016

0 commit comments

Comments
 (0)