Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
18 lines
292 B
Python
Executable File
18 lines
292 B
Python
Executable File
"""
|
|
Utility test
|
|
"""
|
|
|
|
import unittest
|
|
|
|
from core.utils.cache import Cache
|
|
|
|
|
|
class UtilsTest(unittest.TestCase):
|
|
|
|
def test_cache_remember(self):
|
|
def mock_func():
|
|
return "test"
|
|
|
|
result = Cache.remember(mock_func, "test")
|
|
self.assertEqual(result, "test")
|