Skip to content

Commit 1f46c38

Browse files
committed
function_py_test works when function needs cache
1 parent f74cf1d commit 1f46c38

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bigfun/templates/function_py_test.py

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
CACHE = {}
22

3+
class Cache:
4+
5+
def get(self, key):
6+
pass
7+
8+
def set(self, key, value):
9+
pass
10+
11+
cache = Cache()
12+
313
{{ init_code }}
414

515
def run():

0 commit comments

Comments
 (0)