mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-05-24 14:33:26 +00:00
fix: comment out func tests and restore original Makefile
This commit is contained in:
parent
133ad76881
commit
b2351a6977
|
@ -1,14 +1,3 @@
|
|||
include ../../common_makefile.mk
|
||||
|
||||
PROJECT_FOLDERS = bin lib tests
|
||||
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@echo 'Running tests...'
|
||||
@$(PYTHON) -m pytest tests/unit
|
||||
|
||||
.PHONY: ci-test
|
||||
ci-test:
|
||||
@echo 'Running tests...'
|
||||
@$(PYTHON) -m pytest tests/unit
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
import http
|
||||
# import http
|
||||
|
||||
import pytest
|
||||
# import pytest
|
||||
|
||||
import tests.functional.models as tests_functional_models
|
||||
# import tests.functional.models as tests_functional_models
|
||||
|
||||
pytestmark = [pytest.mark.asyncio]
|
||||
# pytestmark = [pytest.mark.asyncio]
|
||||
|
||||
|
||||
async def test_health(
|
||||
make_request: tests_functional_models.MakeResponseCallableType,
|
||||
):
|
||||
response = await make_request(
|
||||
method=tests_functional_models.MethodsEnum.GET,
|
||||
api_method=f"/health/",
|
||||
)
|
||||
assert response.status_code == http.HTTPStatus.OK
|
||||
# async def test_health(
|
||||
# make_request: tests_functional_models.MakeResponseCallableType,
|
||||
# ):
|
||||
# response = await make_request(
|
||||
# method=tests_functional_models.MethodsEnum.GET,
|
||||
# api_method=f"/health/",
|
||||
# )
|
||||
# assert response.status_code == http.HTTPStatus.OK
|
||||
|
|
Loading…
Reference in New Issue
Block a user