Skip to content

Commit

Permalink
Fix flaky ion_cyclotron_source test.
Browse files Browse the repository at this point in the history
This test has issues when accessing JSON, removing the access of the temporarily written JSON to see if that resolves things.

PiperOrigin-RevId: 711700066
  • Loading branch information
Nush395 authored and Torax team committed Jan 3, 2025
1 parent 92a34e0 commit 0953247
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions torax/sources/tests/ion_cyclotron_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,13 @@ def setUpClass(cls):
frequency=[119e6, 120e6, 121e6],
minority_concentration=[1, 2, 3, 4, 5],
)
@mock.patch.object(
ion_cyclotron_source,
"_get_default_model_path",
autospec=True,
return_value=_DUMMY_MODEL_PATH,
)
def test_icrh_output_matches_total_power(
self,
mock_path,
total_power: float,
frequency: float,
minority_concentration: float,
):
"""Test source outputs match the total heating power using dummy model."""
del mock_path
source_class_builder = self._source_class_builder()
source_models_builder = source_models_lib.SourceModelsBuilder({
ion_cyclotron_source.IonCyclotronSource.SOURCE_NAME: (
Expand Down

0 comments on commit 0953247

Please sign in to comment.