Skip to content

Commit

Permalink
VersionStrings as simple Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Apr 12, 2024
1 parent 8ef9f6a commit 79e174c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unittests/model_tests/neuron/test_synaptic_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def say_false(self, *args, **kwargs):

def test_write_data_spec():
unittest_setup()
set_config("Machine", "versions", VersionStrings.ANY.value)
set_config("Machine", "versions", VersionStrings.ANY.text)
writer = SpynnakerDataWriter.mock()
# UGLY but the mock transceiver NEED generate_on_machine to be False
AbstractGenerateConnectorOnMachine.generate_on_machine = say_false
Expand Down Expand Up @@ -434,7 +434,7 @@ def test_pop_based_master_pop_table_standard(
undelayed_indices_connected, delayed_indices_connected,
n_pre_neurons, neurons_per_core, max_delay):
unittest_setup()
set_config("Machine", "versions", VersionStrings.FOUR_PLUS.value)
set_config("Machine", "versions", VersionStrings.FOUR_PLUS.text)
writer = SpynnakerDataWriter.mock()

# Build a from list connector with the delays we want
Expand Down

0 comments on commit 79e174c

Please sign in to comment.