KintoneAppBuilder created
This commit is contained in:
0
backend/app/tests/__init__.py
Normal file
0
backend/app/tests/__init__.py
Normal file
4
backend/app/tests/test_main.py
Normal file
4
backend/app/tests/test_main.py
Normal file
@@ -0,0 +1,4 @@
|
||||
def test_read_main(client):
|
||||
response = client.get("/api/v1")
|
||||
assert response.status_code == 200
|
||||
assert response.json() == {"message": "Hello World"}
|
||||
6
backend/app/tests/test_tasks.py
Normal file
6
backend/app/tests/test_tasks.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from app import tasks
|
||||
|
||||
|
||||
def test_example_task():
|
||||
task_output = tasks.example_task("Hello World")
|
||||
assert task_output == "test task returns Hello World"
|
||||
Reference in New Issue
Block a user