From 431b56c5511278ccdb70e5da3733a9e698114c8f Mon Sep 17 00:00:00 2001 From: ali <ali.sayyah2@gmail.com> Date: Wed, 26 Jan 2022 21:06:20 +0330 Subject: [PATCH] added piccolo to `test_dummy.py` --- .../{{cookiecutter.project_name}}/tests/test_dummy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/tests/test_dummy.py b/fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/tests/test_dummy.py index 655e2ce..52f8cd9 100644 --- a/fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/tests/test_dummy.py +++ b/fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/tests/test_dummy.py @@ -24,7 +24,7 @@ async def test_creation( assert response.status_code == status.HTTP_200_OK {%- if cookiecutter.orm == "sqlalchemy" %} dao = DummyDAO(dbsession) - {%- elif cookiecutter.orm in ["tortoise", "ormar"] %} + {%- elif cookiecutter.orm in ["tortoise", "ormar", "piccolo"] %} dao = DummyDAO() {%- endif %} instances = await dao.filter(name=test_name) @@ -42,7 +42,7 @@ async def test_getting( """Tests dummy instance retrieval.""" {%- if cookiecutter.orm == "sqlalchemy" %} dao = DummyDAO(dbsession) - {%- elif cookiecutter.orm in ["tortoise", "ormar"] %} + {%- elif cookiecutter.orm in ["tortoise", "ormar", "piccolo"] %} dao = DummyDAO() {%- endif %} test_name = uuid.uuid4().hex -- GitLab