diff --git a/tardis/io/model/readers/tests/test_arepo_parser.py b/tardis/io/model/readers/tests/test_arepo_parser.py index fd88eaaec8f..c874e5af6c2 100644 --- a/tardis/io/model/readers/tests/test_arepo_parser.py +++ b/tardis/io/model/readers/tests/test_arepo_parser.py @@ -8,7 +8,7 @@ from tardis.io.model.readers import arepo -@pytest.fixture() +@pytest.fixture def arepo_snapshot_fname(tardis_regression_path): return Path(tardis_regression_path) / "arepo_data" / "arepo_snapshot.json" diff --git a/tardis/plasma/tests/test_tardis_model_density_config.py b/tardis/plasma/tests/test_tardis_model_density_config.py index 5551e7c4eb4..81212b874d6 100644 --- a/tardis/plasma/tests/test_tardis_model_density_config.py +++ b/tardis/plasma/tests/test_tardis_model_density_config.py @@ -14,14 +14,14 @@ def tardis_model_density_config(example_model_file_dir): ) -@pytest.fixture() +@pytest.fixture def raw_simulation_state(tardis_model_density_config, kurucz_atomic_data): return SimulationState.from_config( tardis_model_density_config, atom_data=kurucz_atomic_data ) -@pytest.fixture() +@pytest.fixture def raw_plasma( tardis_model_density_config, raw_simulation_state, kurucz_atomic_data ): diff --git a/tardis/transport/montecarlo/tests/conftest.py b/tardis/transport/montecarlo/tests/conftest.py index 61f80e4aac0..9a28726265c 100644 --- a/tardis/transport/montecarlo/tests/conftest.py +++ b/tardis/transport/montecarlo/tests/conftest.py @@ -147,7 +147,7 @@ def static_packet(): ) -@pytest.fixture() +@pytest.fixture def set_seed_fixture(): def set_seed(value): np.random.seed(value) @@ -155,7 +155,7 @@ def set_seed(value): return njit(set_seed) -@pytest.fixture() +@pytest.fixture def random_call_fixture(): def random_call(): np.random.random() diff --git a/tardis/transport/montecarlo/tests/test_rpacket_last_interaction_tracker.py b/tardis/transport/montecarlo/tests/test_rpacket_last_interaction_tracker.py index b2c449cadab..54c84df5579 100644 --- a/tardis/transport/montecarlo/tests/test_rpacket_last_interaction_tracker.py +++ b/tardis/transport/montecarlo/tests/test_rpacket_last_interaction_tracker.py @@ -18,7 +18,7 @@ def interaction_type_in_use( return interaction_type -@pytest.fixture() +@pytest.fixture def shell_id_in_use( nb_simulation_verysimple, interaction_type_in_use, @@ -32,7 +32,7 @@ def shell_id_in_use( return shell_id[mask] -@pytest.fixture() +@pytest.fixture def r_in_use( nb_simulation_verysimple, interaction_type_in_use, @@ -65,7 +65,7 @@ def interaction_type_to_check( return interaction_type -@pytest.fixture() +@pytest.fixture def shell_id_to_check( nb_simulation_verysimple, interaction_type_to_check, @@ -83,7 +83,7 @@ def shell_id_to_check( return shell_id[mask] -@pytest.fixture() +@pytest.fixture def r_to_check( nb_simulation_verysimple, interaction_type_to_check, @@ -101,7 +101,7 @@ def r_to_check( return r[mask] -@pytest.fixture() +@pytest.fixture def nu_packet_collection( nb_simulation_verysimple, ): @@ -112,7 +112,7 @@ def nu_packet_collection( return packet_collection.output_nus -@pytest.fixture() +@pytest.fixture def nu_to_check( nb_simulation_verysimple, ): diff --git a/tardis/transport/montecarlo/tests/test_rpacket_tracker.py b/tardis/transport/montecarlo/tests/test_rpacket_tracker.py index 971183d2360..fd9dec9fae7 100644 --- a/tardis/transport/montecarlo/tests/test_rpacket_tracker.py +++ b/tardis/transport/montecarlo/tests/test_rpacket_tracker.py @@ -9,7 +9,7 @@ from tardis.transport.montecarlo.r_packet import InteractionType -@pytest.fixture() +@pytest.fixture def interaction_type_last_interaction_class( simulation_rpacket_tracking, ): @@ -20,7 +20,7 @@ def interaction_type_last_interaction_class( return interaction_type -@pytest.fixture() +@pytest.fixture def shell_id_last_interaction_class( simulation_rpacket_tracking, ): @@ -39,7 +39,7 @@ def shell_id_last_interaction_class( return last_line_interaction_shell_id -@pytest.fixture() +@pytest.fixture def nu_from_packet_collection( simulation_rpacket_tracking, ): @@ -73,7 +73,7 @@ def last_interaction_type_rpacket_tracker(rpacket_tracker): return interaction_type -@pytest.fixture() +@pytest.fixture def shell_id_rpacket_tracker( rpacket_tracker, last_interaction_type_rpacket_tracker ): @@ -92,7 +92,7 @@ def shell_id_rpacket_tracker( return last_line_interaction_shell_id -@pytest.fixture() +@pytest.fixture def nu_rpacket_tracker(rpacket_tracker): """Output nu of rpacket from RPacketTracker class""" no_of_packets = len(rpacket_tracker) diff --git a/tardis/visualization/tools/tests/test_convergence_plot.py b/tardis/visualization/tools/tests/test_convergence_plot.py index bb69e23e68b..c511c6ce8c2 100644 --- a/tardis/visualization/tools/tests/test_convergence_plot.py +++ b/tardis/visualization/tools/tests/test_convergence_plot.py @@ -22,7 +22,7 @@ def convergence_plots(request): return convergence_plots -@pytest.fixture() +@pytest.fixture def fetch_luminosity_data(convergence_plots): """Prepare data for t_inner and luminosity plot.""" for item in [2] * convergence_plots.iterations: