From b06056970c6f1ef221cb56576a44ba782862305b Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Mon, 24 Jun 2024 12:12:45 +0100 Subject: [PATCH 1/3] mypy unittests --- .github/workflows/python_actions.yml | 2 +- unittests/__init__.py | 1 - unittests/processes_test/__init__.py | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 unittests/processes_test/__init__.py diff --git a/.github/workflows/python_actions.yml b/.github/workflows/python_actions.yml index ef36ddf42..dca4fea08 100644 --- a/.github/workflows/python_actions.yml +++ b/.github/workflows/python_actions.yml @@ -27,5 +27,5 @@ jobs: coverage-package: spinnman flake8-packages: spinnman unittests spinnman_integration_tests pylint-packages: spinnman - mypy-packages: spinnman + mypy-packages: spinnman unittests spinnman_integration_tests secrets: inherit diff --git a/unittests/__init__.py b/unittests/__init__.py index 1d5b5492f..6f8e038bd 100644 --- a/unittests/__init__.py +++ b/unittests/__init__.py @@ -12,4 +12,3 @@ # See the License for the specific language governing permissions and # limitations under the License. -__author__ = 'Petrut' diff --git a/unittests/processes_test/__init__.py b/unittests/processes_test/__init__.py new file mode 100644 index 000000000..d52bb25e6 --- /dev/null +++ b/unittests/processes_test/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) 2023 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + From ba541042b6068fbe1f18f3d421c6a8a1db0ef5ee Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Mon, 24 Jun 2024 12:15:24 +0100 Subject: [PATCH 2/3] flake8 --- unittests/__init__.py | 1 - unittests/processes_test/__init__.py | 1 - 2 files changed, 2 deletions(-) diff --git a/unittests/__init__.py b/unittests/__init__.py index 6f8e038bd..05bfa339d 100644 --- a/unittests/__init__.py +++ b/unittests/__init__.py @@ -11,4 +11,3 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - diff --git a/unittests/processes_test/__init__.py b/unittests/processes_test/__init__.py index d52bb25e6..91eaa0c57 100644 --- a/unittests/processes_test/__init__.py +++ b/unittests/processes_test/__init__.py @@ -11,4 +11,3 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - From a762ed27f87a70f1954cfc6a1e0b2e4c2f0c3d37 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Mon, 24 Jun 2024 12:18:10 +0100 Subject: [PATCH 3/3] spinnman_tests --- .github/workflows/python_actions.yml | 6 +++--- {unittests => spinnman_tests}/.gitignore | 0 {unittests => spinnman_tests}/__init__.py | 0 {unittests => spinnman_tests}/connection_tests/__init__.py | 0 .../connection_tests/test_udp_boot_connection.py | 0 {unittests => spinnman_tests}/data/__init__.py | 0 {unittests => spinnman_tests}/data/test_data.py | 0 {unittests => spinnman_tests}/messages/__init__.py | 0 {unittests => spinnman_tests}/messages/test_eieio_type.py | 0 {unittests => spinnman_tests}/model_tests/__init__.py | 0 .../model_tests/test_abstract_process.py | 0 .../model_tests/test_core_subset_model.py | 0 .../model_tests/test_core_subsets_model.py | 0 {unittests => spinnman_tests}/model_tests/test_cpu_infos.py | 0 .../model_tests/test_io_buff_model.py | 0 .../model_tests/test_iptag_model.py | 0 .../model_tests/test_machine_dimensions_model.py | 0 .../model_tests/test_retrieving_values_from_enum_models.py | 0 .../model_tests/test_version_info_model.py | 0 {unittests => spinnman_tests}/processes_test/__init__.py | 0 .../processes_test/test_most_direct_connections_selector.py | 0 {unittests => spinnman_tests}/scp_tests/__init__.py | 0 .../scp_tests/test_count_state_response.py | 0 .../scp_tests/test_scp_check_ok_response.py | 0 {unittests => spinnman_tests}/scp_tests/test_scp_enums.py | 0 .../scp_tests/test_scp_message_assembly.py | 0 .../scp_tests/test_scp_version_request.py | 0 .../scp_tests/test_scp_version_response.py | 0 {unittests => spinnman_tests}/sdp_tests/__init__.py | 0 {unittests => spinnman_tests}/sdp_tests/test_eieio_enums.py | 0 {unittests => spinnman_tests}/sdp_tests/test_sdp_enums.py | 0 {unittests => spinnman_tests}/test_boot_message_assembly.py | 0 {unittests => spinnman_tests}/test_cfg_checker.py | 0 {unittests => spinnman_tests}/test_import_all_test.py | 0 .../test_multicast_message_assembly.py | 0 {unittests => spinnman_tests}/test_transceiver.py | 0 {unittests => spinnman_tests}/test_version.py | 0 {unittests => spinnman_tests}/threads_tests/__init__.py | 0 38 files changed, 3 insertions(+), 3 deletions(-) rename {unittests => spinnman_tests}/.gitignore (100%) rename {unittests => spinnman_tests}/__init__.py (100%) rename {unittests => spinnman_tests}/connection_tests/__init__.py (100%) rename {unittests => spinnman_tests}/connection_tests/test_udp_boot_connection.py (100%) rename {unittests => spinnman_tests}/data/__init__.py (100%) rename {unittests => spinnman_tests}/data/test_data.py (100%) rename {unittests => spinnman_tests}/messages/__init__.py (100%) rename {unittests => spinnman_tests}/messages/test_eieio_type.py (100%) rename {unittests => spinnman_tests}/model_tests/__init__.py (100%) rename {unittests => spinnman_tests}/model_tests/test_abstract_process.py (100%) rename {unittests => spinnman_tests}/model_tests/test_core_subset_model.py (100%) rename {unittests => spinnman_tests}/model_tests/test_core_subsets_model.py (100%) rename {unittests => spinnman_tests}/model_tests/test_cpu_infos.py (100%) rename {unittests => spinnman_tests}/model_tests/test_io_buff_model.py (100%) rename {unittests => spinnman_tests}/model_tests/test_iptag_model.py (100%) rename {unittests => spinnman_tests}/model_tests/test_machine_dimensions_model.py (100%) rename {unittests => spinnman_tests}/model_tests/test_retrieving_values_from_enum_models.py (100%) rename {unittests => spinnman_tests}/model_tests/test_version_info_model.py (100%) rename {unittests => spinnman_tests}/processes_test/__init__.py (100%) rename {unittests => spinnman_tests}/processes_test/test_most_direct_connections_selector.py (100%) rename {unittests => spinnman_tests}/scp_tests/__init__.py (100%) rename {unittests => spinnman_tests}/scp_tests/test_count_state_response.py (100%) rename {unittests => spinnman_tests}/scp_tests/test_scp_check_ok_response.py (100%) rename {unittests => spinnman_tests}/scp_tests/test_scp_enums.py (100%) rename {unittests => spinnman_tests}/scp_tests/test_scp_message_assembly.py (100%) rename {unittests => spinnman_tests}/scp_tests/test_scp_version_request.py (100%) rename {unittests => spinnman_tests}/scp_tests/test_scp_version_response.py (100%) rename {unittests => spinnman_tests}/sdp_tests/__init__.py (100%) rename {unittests => spinnman_tests}/sdp_tests/test_eieio_enums.py (100%) rename {unittests => spinnman_tests}/sdp_tests/test_sdp_enums.py (100%) rename {unittests => spinnman_tests}/test_boot_message_assembly.py (100%) rename {unittests => spinnman_tests}/test_cfg_checker.py (100%) rename {unittests => spinnman_tests}/test_import_all_test.py (100%) rename {unittests => spinnman_tests}/test_multicast_message_assembly.py (100%) rename {unittests => spinnman_tests}/test_transceiver.py (100%) rename {unittests => spinnman_tests}/test_version.py (100%) rename {unittests => spinnman_tests}/threads_tests/__init__.py (100%) diff --git a/.github/workflows/python_actions.yml b/.github/workflows/python_actions.yml index dca4fea08..3aa21a4fa 100644 --- a/.github/workflows/python_actions.yml +++ b/.github/workflows/python_actions.yml @@ -23,9 +23,9 @@ jobs: with: dependencies: SpiNNUtils SpiNNMachine - test_directories: unittests spinnman_integration_tests + test_directories: spinnman_tests spinnman_integration_tests coverage-package: spinnman - flake8-packages: spinnman unittests spinnman_integration_tests + flake8-packages: spinnman spinnman_tests spinnman_integration_tests pylint-packages: spinnman - mypy-packages: spinnman unittests spinnman_integration_tests + mypy-packages: spinnman spinnman_tests spinnman_integration_tests secrets: inherit diff --git a/unittests/.gitignore b/spinnman_tests/.gitignore similarity index 100% rename from unittests/.gitignore rename to spinnman_tests/.gitignore diff --git a/unittests/__init__.py b/spinnman_tests/__init__.py similarity index 100% rename from unittests/__init__.py rename to spinnman_tests/__init__.py diff --git a/unittests/connection_tests/__init__.py b/spinnman_tests/connection_tests/__init__.py similarity index 100% rename from unittests/connection_tests/__init__.py rename to spinnman_tests/connection_tests/__init__.py diff --git a/unittests/connection_tests/test_udp_boot_connection.py b/spinnman_tests/connection_tests/test_udp_boot_connection.py similarity index 100% rename from unittests/connection_tests/test_udp_boot_connection.py rename to spinnman_tests/connection_tests/test_udp_boot_connection.py diff --git a/unittests/data/__init__.py b/spinnman_tests/data/__init__.py similarity index 100% rename from unittests/data/__init__.py rename to spinnman_tests/data/__init__.py diff --git a/unittests/data/test_data.py b/spinnman_tests/data/test_data.py similarity index 100% rename from unittests/data/test_data.py rename to spinnman_tests/data/test_data.py diff --git a/unittests/messages/__init__.py b/spinnman_tests/messages/__init__.py similarity index 100% rename from unittests/messages/__init__.py rename to spinnman_tests/messages/__init__.py diff --git a/unittests/messages/test_eieio_type.py b/spinnman_tests/messages/test_eieio_type.py similarity index 100% rename from unittests/messages/test_eieio_type.py rename to spinnman_tests/messages/test_eieio_type.py diff --git a/unittests/model_tests/__init__.py b/spinnman_tests/model_tests/__init__.py similarity index 100% rename from unittests/model_tests/__init__.py rename to spinnman_tests/model_tests/__init__.py diff --git a/unittests/model_tests/test_abstract_process.py b/spinnman_tests/model_tests/test_abstract_process.py similarity index 100% rename from unittests/model_tests/test_abstract_process.py rename to spinnman_tests/model_tests/test_abstract_process.py diff --git a/unittests/model_tests/test_core_subset_model.py b/spinnman_tests/model_tests/test_core_subset_model.py similarity index 100% rename from unittests/model_tests/test_core_subset_model.py rename to spinnman_tests/model_tests/test_core_subset_model.py diff --git a/unittests/model_tests/test_core_subsets_model.py b/spinnman_tests/model_tests/test_core_subsets_model.py similarity index 100% rename from unittests/model_tests/test_core_subsets_model.py rename to spinnman_tests/model_tests/test_core_subsets_model.py diff --git a/unittests/model_tests/test_cpu_infos.py b/spinnman_tests/model_tests/test_cpu_infos.py similarity index 100% rename from unittests/model_tests/test_cpu_infos.py rename to spinnman_tests/model_tests/test_cpu_infos.py diff --git a/unittests/model_tests/test_io_buff_model.py b/spinnman_tests/model_tests/test_io_buff_model.py similarity index 100% rename from unittests/model_tests/test_io_buff_model.py rename to spinnman_tests/model_tests/test_io_buff_model.py diff --git a/unittests/model_tests/test_iptag_model.py b/spinnman_tests/model_tests/test_iptag_model.py similarity index 100% rename from unittests/model_tests/test_iptag_model.py rename to spinnman_tests/model_tests/test_iptag_model.py diff --git a/unittests/model_tests/test_machine_dimensions_model.py b/spinnman_tests/model_tests/test_machine_dimensions_model.py similarity index 100% rename from unittests/model_tests/test_machine_dimensions_model.py rename to spinnman_tests/model_tests/test_machine_dimensions_model.py diff --git a/unittests/model_tests/test_retrieving_values_from_enum_models.py b/spinnman_tests/model_tests/test_retrieving_values_from_enum_models.py similarity index 100% rename from unittests/model_tests/test_retrieving_values_from_enum_models.py rename to spinnman_tests/model_tests/test_retrieving_values_from_enum_models.py diff --git a/unittests/model_tests/test_version_info_model.py b/spinnman_tests/model_tests/test_version_info_model.py similarity index 100% rename from unittests/model_tests/test_version_info_model.py rename to spinnman_tests/model_tests/test_version_info_model.py diff --git a/unittests/processes_test/__init__.py b/spinnman_tests/processes_test/__init__.py similarity index 100% rename from unittests/processes_test/__init__.py rename to spinnman_tests/processes_test/__init__.py diff --git a/unittests/processes_test/test_most_direct_connections_selector.py b/spinnman_tests/processes_test/test_most_direct_connections_selector.py similarity index 100% rename from unittests/processes_test/test_most_direct_connections_selector.py rename to spinnman_tests/processes_test/test_most_direct_connections_selector.py diff --git a/unittests/scp_tests/__init__.py b/spinnman_tests/scp_tests/__init__.py similarity index 100% rename from unittests/scp_tests/__init__.py rename to spinnman_tests/scp_tests/__init__.py diff --git a/unittests/scp_tests/test_count_state_response.py b/spinnman_tests/scp_tests/test_count_state_response.py similarity index 100% rename from unittests/scp_tests/test_count_state_response.py rename to spinnman_tests/scp_tests/test_count_state_response.py diff --git a/unittests/scp_tests/test_scp_check_ok_response.py b/spinnman_tests/scp_tests/test_scp_check_ok_response.py similarity index 100% rename from unittests/scp_tests/test_scp_check_ok_response.py rename to spinnman_tests/scp_tests/test_scp_check_ok_response.py diff --git a/unittests/scp_tests/test_scp_enums.py b/spinnman_tests/scp_tests/test_scp_enums.py similarity index 100% rename from unittests/scp_tests/test_scp_enums.py rename to spinnman_tests/scp_tests/test_scp_enums.py diff --git a/unittests/scp_tests/test_scp_message_assembly.py b/spinnman_tests/scp_tests/test_scp_message_assembly.py similarity index 100% rename from unittests/scp_tests/test_scp_message_assembly.py rename to spinnman_tests/scp_tests/test_scp_message_assembly.py diff --git a/unittests/scp_tests/test_scp_version_request.py b/spinnman_tests/scp_tests/test_scp_version_request.py similarity index 100% rename from unittests/scp_tests/test_scp_version_request.py rename to spinnman_tests/scp_tests/test_scp_version_request.py diff --git a/unittests/scp_tests/test_scp_version_response.py b/spinnman_tests/scp_tests/test_scp_version_response.py similarity index 100% rename from unittests/scp_tests/test_scp_version_response.py rename to spinnman_tests/scp_tests/test_scp_version_response.py diff --git a/unittests/sdp_tests/__init__.py b/spinnman_tests/sdp_tests/__init__.py similarity index 100% rename from unittests/sdp_tests/__init__.py rename to spinnman_tests/sdp_tests/__init__.py diff --git a/unittests/sdp_tests/test_eieio_enums.py b/spinnman_tests/sdp_tests/test_eieio_enums.py similarity index 100% rename from unittests/sdp_tests/test_eieio_enums.py rename to spinnman_tests/sdp_tests/test_eieio_enums.py diff --git a/unittests/sdp_tests/test_sdp_enums.py b/spinnman_tests/sdp_tests/test_sdp_enums.py similarity index 100% rename from unittests/sdp_tests/test_sdp_enums.py rename to spinnman_tests/sdp_tests/test_sdp_enums.py diff --git a/unittests/test_boot_message_assembly.py b/spinnman_tests/test_boot_message_assembly.py similarity index 100% rename from unittests/test_boot_message_assembly.py rename to spinnman_tests/test_boot_message_assembly.py diff --git a/unittests/test_cfg_checker.py b/spinnman_tests/test_cfg_checker.py similarity index 100% rename from unittests/test_cfg_checker.py rename to spinnman_tests/test_cfg_checker.py diff --git a/unittests/test_import_all_test.py b/spinnman_tests/test_import_all_test.py similarity index 100% rename from unittests/test_import_all_test.py rename to spinnman_tests/test_import_all_test.py diff --git a/unittests/test_multicast_message_assembly.py b/spinnman_tests/test_multicast_message_assembly.py similarity index 100% rename from unittests/test_multicast_message_assembly.py rename to spinnman_tests/test_multicast_message_assembly.py diff --git a/unittests/test_transceiver.py b/spinnman_tests/test_transceiver.py similarity index 100% rename from unittests/test_transceiver.py rename to spinnman_tests/test_transceiver.py diff --git a/unittests/test_version.py b/spinnman_tests/test_version.py similarity index 100% rename from unittests/test_version.py rename to spinnman_tests/test_version.py diff --git a/unittests/threads_tests/__init__.py b/spinnman_tests/threads_tests/__init__.py similarity index 100% rename from unittests/threads_tests/__init__.py rename to spinnman_tests/threads_tests/__init__.py