From ad57ba69b4b99a9b7ec01327fcd6100df80a56f4 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 16 May 2023 15:48:37 -0300 Subject: [PATCH] Remove unused test boilerplate --- busqueda/handler_test.py | 11 ----------- busqueda/tox.ini | 41 --------------------------------------- historico/handler_test.py | 11 ----------- historico/tox.ini | 41 --------------------------------------- tapas/handler_test.py | 11 ----------- tapas/tox.ini | 41 --------------------------------------- 6 files changed, 156 deletions(-) delete mode 100644 busqueda/handler_test.py delete mode 100644 busqueda/tox.ini delete mode 100644 historico/handler_test.py delete mode 100644 historico/tox.ini delete mode 100644 tapas/handler_test.py delete mode 100644 tapas/tox.ini diff --git a/busqueda/handler_test.py b/busqueda/handler_test.py deleted file mode 100644 index 1ce59c9..0000000 --- a/busqueda/handler_test.py +++ /dev/null @@ -1,11 +0,0 @@ -from .handler import handle - -# Test your handler here - -# To disable testing, you can set the build_arg `TEST_ENABLED=false` on the CLI or in your stack.yml -# https://docs.openfaas.com/reference/yaml/#function-build-args-build-args - - -def test_handle(): - # assert handle("input") == "input" - pass diff --git a/busqueda/tox.ini b/busqueda/tox.ini deleted file mode 100644 index a64a800..0000000 --- a/busqueda/tox.ini +++ /dev/null @@ -1,41 +0,0 @@ -# If you would like to disable -# automated testing during faas-cli build, - -# Replace the content of this file with -# [tox] -# skipsdist = true - -# You can also edit, remove, or add additional test steps -# by editing, removing, or adding new testenv sections - - -# find out more about tox: https://tox.readthedocs.io/en/latest/ -[tox] -envlist = lint,test -skipsdist = true - -[testenv:test] -deps = - flask - pytest - -rrequirements.txt -commands = - # run unit tests with pytest - # https://docs.pytest.org/en/stable/ - # configure by adding a pytest.ini to your handler - pytest - -[testenv:lint] -deps = - flake8 -commands = - flake8 . - -[flake8] -count = true -max-line-length = 127 -max-complexity = 10 -statistics = true -# stop the build if there are Python syntax errors or undefined names -select = E9,F63,F7,F82 -show-source = true diff --git a/historico/handler_test.py b/historico/handler_test.py deleted file mode 100644 index 1ce59c9..0000000 --- a/historico/handler_test.py +++ /dev/null @@ -1,11 +0,0 @@ -from .handler import handle - -# Test your handler here - -# To disable testing, you can set the build_arg `TEST_ENABLED=false` on the CLI or in your stack.yml -# https://docs.openfaas.com/reference/yaml/#function-build-args-build-args - - -def test_handle(): - # assert handle("input") == "input" - pass diff --git a/historico/tox.ini b/historico/tox.ini deleted file mode 100644 index a64a800..0000000 --- a/historico/tox.ini +++ /dev/null @@ -1,41 +0,0 @@ -# If you would like to disable -# automated testing during faas-cli build, - -# Replace the content of this file with -# [tox] -# skipsdist = true - -# You can also edit, remove, or add additional test steps -# by editing, removing, or adding new testenv sections - - -# find out more about tox: https://tox.readthedocs.io/en/latest/ -[tox] -envlist = lint,test -skipsdist = true - -[testenv:test] -deps = - flask - pytest - -rrequirements.txt -commands = - # run unit tests with pytest - # https://docs.pytest.org/en/stable/ - # configure by adding a pytest.ini to your handler - pytest - -[testenv:lint] -deps = - flake8 -commands = - flake8 . - -[flake8] -count = true -max-line-length = 127 -max-complexity = 10 -statistics = true -# stop the build if there are Python syntax errors or undefined names -select = E9,F63,F7,F82 -show-source = true diff --git a/tapas/handler_test.py b/tapas/handler_test.py deleted file mode 100644 index 1ce59c9..0000000 --- a/tapas/handler_test.py +++ /dev/null @@ -1,11 +0,0 @@ -from .handler import handle - -# Test your handler here - -# To disable testing, you can set the build_arg `TEST_ENABLED=false` on the CLI or in your stack.yml -# https://docs.openfaas.com/reference/yaml/#function-build-args-build-args - - -def test_handle(): - # assert handle("input") == "input" - pass diff --git a/tapas/tox.ini b/tapas/tox.ini deleted file mode 100644 index a64a800..0000000 --- a/tapas/tox.ini +++ /dev/null @@ -1,41 +0,0 @@ -# If you would like to disable -# automated testing during faas-cli build, - -# Replace the content of this file with -# [tox] -# skipsdist = true - -# You can also edit, remove, or add additional test steps -# by editing, removing, or adding new testenv sections - - -# find out more about tox: https://tox.readthedocs.io/en/latest/ -[tox] -envlist = lint,test -skipsdist = true - -[testenv:test] -deps = - flask - pytest - -rrequirements.txt -commands = - # run unit tests with pytest - # https://docs.pytest.org/en/stable/ - # configure by adding a pytest.ini to your handler - pytest - -[testenv:lint] -deps = - flake8 -commands = - flake8 . - -[flake8] -count = true -max-line-length = 127 -max-complexity = 10 -statistics = true -# stop the build if there are Python syntax errors or undefined names -select = E9,F63,F7,F82 -show-source = true