From aee016d6e4ea9796f419a6846614d27221596fd5 Mon Sep 17 00:00:00 2001 From: Suren Gabrielyan Date: Wed, 19 Oct 2022 08:33:25 +0200 Subject: [PATCH] Examples: using pytest.ini from top level directory --- components/asio/examples/asio_chat/pytest.ini | 24 ------------------- .../examples/ssl_client_server/pytest.ini | 24 ------------------- .../asio/examples/tcp_echo_server/pytest.ini | 24 ------------------- .../asio/examples/udp_echo_server/pytest.ini | 24 ------------------- .../esp_websocket_client/examples/pytest.ini | 24 ------------------- components/mdns/examples/pytest.ini | 24 ------------------- .../tests/test_apps/pytest.ini => pytest.ini | 1 - 7 files changed, 145 deletions(-) delete mode 100644 components/asio/examples/asio_chat/pytest.ini delete mode 100644 components/asio/examples/ssl_client_server/pytest.ini delete mode 100644 components/asio/examples/tcp_echo_server/pytest.ini delete mode 100644 components/asio/examples/udp_echo_server/pytest.ini delete mode 100644 components/esp_websocket_client/examples/pytest.ini delete mode 100644 components/mdns/examples/pytest.ini rename components/mdns/tests/test_apps/pytest.ini => pytest.ini (96%) diff --git a/components/asio/examples/asio_chat/pytest.ini b/components/asio/examples/asio_chat/pytest.ini deleted file mode 100644 index f9e911d15..000000000 --- a/components/asio/examples/asio_chat/pytest.ini +++ /dev/null @@ -1,24 +0,0 @@ -[pytest] -# only the files with prefix `pytest_` would be recognized as pytest test scripts. -python_files = pytest_*.py - -addopts = - -s - --embedded-services esp,idf - -W ignore::_pytest.warning_types.PytestExperimentalApiWarning - --tb short - -# ignore DeprecationWarning -filterwarnings = - ignore:Call to deprecated create function (.*)\(\):DeprecationWarning - -# log related -log_cli = True -log_cli_level = INFO -log_cli_format = %(asctime)s %(levelname)s %(message)s -log_cli_date_format = %Y-%m-%d %H:%M:%S - -log_file = test.log -log_file_level = INFO -log_file_format = %(asctime)s %(levelname)s %(message)s -log_file_date_format = %Y-%m-%d %H:%M:%S diff --git a/components/asio/examples/ssl_client_server/pytest.ini b/components/asio/examples/ssl_client_server/pytest.ini deleted file mode 100644 index f9e911d15..000000000 --- a/components/asio/examples/ssl_client_server/pytest.ini +++ /dev/null @@ -1,24 +0,0 @@ -[pytest] -# only the files with prefix `pytest_` would be recognized as pytest test scripts. -python_files = pytest_*.py - -addopts = - -s - --embedded-services esp,idf - -W ignore::_pytest.warning_types.PytestExperimentalApiWarning - --tb short - -# ignore DeprecationWarning -filterwarnings = - ignore:Call to deprecated create function (.*)\(\):DeprecationWarning - -# log related -log_cli = True -log_cli_level = INFO -log_cli_format = %(asctime)s %(levelname)s %(message)s -log_cli_date_format = %Y-%m-%d %H:%M:%S - -log_file = test.log -log_file_level = INFO -log_file_format = %(asctime)s %(levelname)s %(message)s -log_file_date_format = %Y-%m-%d %H:%M:%S diff --git a/components/asio/examples/tcp_echo_server/pytest.ini b/components/asio/examples/tcp_echo_server/pytest.ini deleted file mode 100644 index f9e911d15..000000000 --- a/components/asio/examples/tcp_echo_server/pytest.ini +++ /dev/null @@ -1,24 +0,0 @@ -[pytest] -# only the files with prefix `pytest_` would be recognized as pytest test scripts. -python_files = pytest_*.py - -addopts = - -s - --embedded-services esp,idf - -W ignore::_pytest.warning_types.PytestExperimentalApiWarning - --tb short - -# ignore DeprecationWarning -filterwarnings = - ignore:Call to deprecated create function (.*)\(\):DeprecationWarning - -# log related -log_cli = True -log_cli_level = INFO -log_cli_format = %(asctime)s %(levelname)s %(message)s -log_cli_date_format = %Y-%m-%d %H:%M:%S - -log_file = test.log -log_file_level = INFO -log_file_format = %(asctime)s %(levelname)s %(message)s -log_file_date_format = %Y-%m-%d %H:%M:%S diff --git a/components/asio/examples/udp_echo_server/pytest.ini b/components/asio/examples/udp_echo_server/pytest.ini deleted file mode 100644 index f9e911d15..000000000 --- a/components/asio/examples/udp_echo_server/pytest.ini +++ /dev/null @@ -1,24 +0,0 @@ -[pytest] -# only the files with prefix `pytest_` would be recognized as pytest test scripts. -python_files = pytest_*.py - -addopts = - -s - --embedded-services esp,idf - -W ignore::_pytest.warning_types.PytestExperimentalApiWarning - --tb short - -# ignore DeprecationWarning -filterwarnings = - ignore:Call to deprecated create function (.*)\(\):DeprecationWarning - -# log related -log_cli = True -log_cli_level = INFO -log_cli_format = %(asctime)s %(levelname)s %(message)s -log_cli_date_format = %Y-%m-%d %H:%M:%S - -log_file = test.log -log_file_level = INFO -log_file_format = %(asctime)s %(levelname)s %(message)s -log_file_date_format = %Y-%m-%d %H:%M:%S diff --git a/components/esp_websocket_client/examples/pytest.ini b/components/esp_websocket_client/examples/pytest.ini deleted file mode 100644 index f9e911d15..000000000 --- a/components/esp_websocket_client/examples/pytest.ini +++ /dev/null @@ -1,24 +0,0 @@ -[pytest] -# only the files with prefix `pytest_` would be recognized as pytest test scripts. -python_files = pytest_*.py - -addopts = - -s - --embedded-services esp,idf - -W ignore::_pytest.warning_types.PytestExperimentalApiWarning - --tb short - -# ignore DeprecationWarning -filterwarnings = - ignore:Call to deprecated create function (.*)\(\):DeprecationWarning - -# log related -log_cli = True -log_cli_level = INFO -log_cli_format = %(asctime)s %(levelname)s %(message)s -log_cli_date_format = %Y-%m-%d %H:%M:%S - -log_file = test.log -log_file_level = INFO -log_file_format = %(asctime)s %(levelname)s %(message)s -log_file_date_format = %Y-%m-%d %H:%M:%S diff --git a/components/mdns/examples/pytest.ini b/components/mdns/examples/pytest.ini deleted file mode 100644 index f9e911d15..000000000 --- a/components/mdns/examples/pytest.ini +++ /dev/null @@ -1,24 +0,0 @@ -[pytest] -# only the files with prefix `pytest_` would be recognized as pytest test scripts. -python_files = pytest_*.py - -addopts = - -s - --embedded-services esp,idf - -W ignore::_pytest.warning_types.PytestExperimentalApiWarning - --tb short - -# ignore DeprecationWarning -filterwarnings = - ignore:Call to deprecated create function (.*)\(\):DeprecationWarning - -# log related -log_cli = True -log_cli_level = INFO -log_cli_format = %(asctime)s %(levelname)s %(message)s -log_cli_date_format = %Y-%m-%d %H:%M:%S - -log_file = test.log -log_file_level = INFO -log_file_format = %(asctime)s %(levelname)s %(message)s -log_file_date_format = %Y-%m-%d %H:%M:%S diff --git a/components/mdns/tests/test_apps/pytest.ini b/pytest.ini similarity index 96% rename from components/mdns/tests/test_apps/pytest.ini rename to pytest.ini index fb547ce2a..3705d704f 100644 --- a/components/mdns/tests/test_apps/pytest.ini +++ b/pytest.ini @@ -8,7 +8,6 @@ addopts = -s --embedded-services esp,idf --tb short - --skip-check-coredump y # ignore DeprecationWarning filterwarnings =