Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version and testing for Spin2 #399

Merged
merged 5 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions unittests/data/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

import unittest
from spinn_utilities.config_holder import set_config
from spinn_utilities.exceptions import (DataNotYetAvialable)
from spinnman.config_setup import unittest_setup
from spinnman.data import SpiNNManDataView
Expand All @@ -33,13 +32,6 @@ def test_setup(self):
with self.assertRaises(DataNotYetAvialable):
SpiNNManDataView.get_transceiver()

def test_mock(self):
SpiNNManDataWriter.mock()
set_config("Machine", "version", 5)
# check there is a
# value not what it is
SpiNNManDataView.get_machine()

def test_transceiver(self):
writer = SpiNNManDataWriter.setup()
with self.assertRaises(DataNotYetAvialable):
Expand Down
3 changes: 2 additions & 1 deletion unittests/model_tests/test_abstract_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

from spinn_utilities.config_holder import set_config
from spinn_machine.version.version_strings import VersionStrings
from spinnman.processes.abstract_multi_connection_process import (
AbstractMultiConnectionProcess)
from spinnman.messages.scp.impl import ReadMemory
Expand Down Expand Up @@ -40,7 +41,7 @@ def receive_scp_response(self, timeout=1.0):

def test_error_print():
unittest_setup()
set_config("Machine", "version", 5)
set_config("Machine", "versions", VersionStrings.ANY.text)
connection = MockConnection(0, 0)
process = MockProcess(RoundRobinConnectionSelector([connection]))
with pytest.raises(SpinnmanGenericProcessException):
Expand Down
3 changes: 2 additions & 1 deletion unittests/test_transceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import unittest
import struct
from spinn_utilities.config_holder import set_config
from spinn_machine.version.version_strings import VersionStrings
from spinnman.config_setup import unittest_setup
from spinnman.data import SpiNNManDataView
from spinnman.data.spinnman_data_writer import SpiNNManDataWriter
Expand Down Expand Up @@ -83,7 +84,7 @@ def test_boot_board(self):
trans._boot_board()

def test_set_watch_dog(self):
set_config("Machine", "version", 5)
set_config("Machine", "versions", VersionStrings.ANY.text)
connections = []
connections.append(SCAMPConnection(remote_host=None))
tx = MockExtendedTransceiver()
Expand Down
Loading