add nix flake
make a restart
This commit is contained in:
tuxcoder 2023-10-09 21:58:44 +02:00
parent 536668d8b9
commit eee18c1785
24 changed files with 509 additions and 231 deletions

0
tests/__init__.py Normal file
View file

17
tests/test_json.py Normal file
View file

@ -0,0 +1,17 @@
import unittest
from flask import jsonify
from uuid import uuid4
from lenticular_cloud.app import create_app
from lenticular_cloud.model import User
class TestBasicJsonFunction(unittest.TestCase):
def test_encode(self):
app = create_app()
uuid = uuid4()
with app.app_context():
text = jsonify(uuid)
print(text)