Skip to content

Commit

Permalink
show units now default
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdark committed Jan 10, 2025
1 parent 1c22343 commit 636a322
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,28 +163,28 @@ def test_average_surface_cylindrical_title_no_units_solute():
festim.AverageSurfaceCylindrical with a solute field without units"""

my_export = AverageSurfaceCylindrical("solute", 4)
assert my_export.title == "Average solute surface 4"
assert my_export.title == "Average solute surface 4 (H m-3)"


def test_average_surface_cylindrical_title_no_units_temperature():
"""A simple test to check that the title is set correctly in
festim.AverageSurfaceCylindrical with a T field without units"""

my_export = AverageSurfaceCylindrical("T", 5)
assert my_export.title == "Average T surface 5"
assert my_export.title == "Average T surface 5 (K)"


def test_average_surface_spherical_title_no_units_solute():
"""A simple test to check that the title is set correctly in
festim.AverageSurfaceSpherical with a solute field without units"""

my_export = AverageSurfaceSpherical("solute", 6)
assert my_export.title == "Average solute surface 6"
assert my_export.title == "Average solute surface 6 (H m-3)"


def test_average_surface_spherical_title_no_units_temperature():
"""A simple test to check that the title is set correctly in
festim.AverageSurfaceSpherical with a T field without units"""

my_export = AverageSurfaceSpherical("T", 9)
assert my_export.title == "Average T surface 9"
assert my_export.title == "Average T surface 9 (K)"
Original file line number Diff line number Diff line change
Expand Up @@ -144,28 +144,28 @@ def test_average_volume_cylindrical_title_no_units_solute():
festim.AverageVolumeCylindrical with a solute field without units"""

my_export = AverageVolumeCylindrical("solute", 4)
assert my_export.title == "Average solute volume 4"
assert my_export.title == "Average solute volume 4 (H m-3)"


def test_average_volume_cylindrical_title_no_units_temperature():
"""A simple test to check that the title is set correctly in
festim.AverageVolumeCylindrical with a T field without units"""

my_export = AverageVolumeCylindrical("T", 5)
assert my_export.title == "Average T volume 5"
assert my_export.title == "Average T volume 5 (K)"


def test_average_volume_spherical_title_no_units_solute():
"""A simple test to check that the title is set correctly in
festim.AverageVolumeSpherical with a solute field without units"""

my_export = AverageVolumeSpherical("solute", 6)
assert my_export.title == "Average solute volume 6"
assert my_export.title == "Average solute volume 6 (H m-3)"


def test_average_volume_spherical_title_no_units_temperature():
"""A simple test to check that the title is set correctly in
festim.AverageVolumeSpherical with a T field without units"""

my_export = AverageVolumeSpherical("T", 9)
assert my_export.title == "Average T volume 9"
assert my_export.title == "Average T volume 9 (K)"

0 comments on commit 636a322

Please sign in to comment.