@@ -31,7 +31,6 @@ def test_gsl():
31
31
pass
32
32
"""
33
33
34
- import dataclasses
35
34
import os
36
35
import pathlib
37
36
import subprocess
@@ -45,7 +44,6 @@ def test_gsl():
45
44
# Ignore it during test collection
46
45
collect_ignore = ["utilities" ]
47
46
48
- import testsimulation # noqa
49
47
import testutil # noqa
50
48
51
49
@@ -174,24 +172,3 @@ def skipif_incompatible_mpi(request, subprocess_compatible_mpi):
174
172
175
173
if not subprocess_compatible_mpi and request .node .get_closest_marker ("skipif_incompatible_mpi" ):
176
174
pytest .skip ("skipped because MPI is incompatible with subprocess" )
177
-
178
-
179
- @pytest .fixture (autouse = True )
180
- def simulation_class (request ):
181
- return getattr (request , "param" , testsimulation .Simulation )
182
-
183
-
184
- @pytest .fixture
185
- def simulation (request ):
186
- marker = request .node .get_closest_marker ("simulation" )
187
- sim_cls = marker .args [0 ] if marker else testsimulation .Simulation
188
- sim = sim_cls (* (request .getfixturevalue (field .name ) for field in dataclasses .fields (sim_cls )))
189
- nest .ResetKernel ()
190
- if getattr (sim , "set_resolution" , True ):
191
- nest .resolution = sim .resolution
192
- nest .local_num_threads = sim .local_num_threads
193
- return sim
194
-
195
-
196
- # Inject the root simulation fixtures into this module to be always available.
197
- testutil .create_dataclass_fixtures (testsimulation .Simulation , __name__ )
0 commit comments