From b9925284c76439ec51109c295afc3efb051e5ba1 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Mon, 27 Nov 2023 09:57:00 -0800 Subject: [PATCH] Remove coverage and pytest-cov --- {{cookiecutter.__src_folder_name}}/pyproject.toml | 5 +---- {{cookiecutter.__src_folder_name}}/requirements-dev.in | 2 -- .../src/flask/flaskapp/__init__.py | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/{{cookiecutter.__src_folder_name}}/pyproject.toml b/{{cookiecutter.__src_folder_name}}/pyproject.toml index c278f9d..21f5de8 100644 --- a/{{cookiecutter.__src_folder_name}}/pyproject.toml +++ b/{{cookiecutter.__src_folder_name}}/pyproject.toml @@ -28,11 +28,8 @@ force-exclude = ''' {% endif %} [tool.pytest.ini_options] -addopts = "-ra --cov -vv" +addopts = "-ra -vv" {% if cookiecutter.project_backend == "django" %} DJANGO_SETTINGS_MODULE = "project.settings" pythonpath = ["src"] {% endif %} - -[tool.coverage.report] -show_missing = true diff --git a/{{cookiecutter.__src_folder_name}}/requirements-dev.in b/{{cookiecutter.__src_folder_name}}/requirements-dev.in index 575fd03..f703ad6 100644 --- a/{{cookiecutter.__src_folder_name}}/requirements-dev.in +++ b/{{cookiecutter.__src_folder_name}}/requirements-dev.in @@ -5,9 +5,7 @@ cruft pip-tools # Testing Tools -coverage pytest -pytest-cov {% if cookiecutter.project_backend == "django" %} pytest-django {% endif %} diff --git a/{{cookiecutter.__src_folder_name}}/src/flask/flaskapp/__init__.py b/{{cookiecutter.__src_folder_name}}/src/flask/flaskapp/__init__.py index 78b9897..da6877f 100644 --- a/{{cookiecutter.__src_folder_name}}/src/flask/flaskapp/__init__.py +++ b/{{cookiecutter.__src_folder_name}}/src/flask/flaskapp/__init__.py @@ -33,7 +33,7 @@ def create_app(test_config=None): if not is_prod_env: app.config.from_object("flaskapp.config.development") else: - app.config.from_object("flaskapp.config.production") # pragma: no cover + app.config.from_object("flaskapp.config.production") FlaskMiddleware( app, exporter=AzureExporter(connection_string=os.environ.get("APPLICATIONINSIGHTS_CONNECTION_STRING", None)),