gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
17
tests/utils_test.py
Executable file
17
tests/utils_test.py
Executable file
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
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")
|
||||
Reference in New Issue
Block a user