lenticular_cloud2/tests/test_json.py

18 lines
368 B
Python
Raw Permalink Normal View History

2023-10-09 19:58:44 +00:00
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)