From 849de0419cf2a707df5322d6f9891e2c0a5d3de6 Mon Sep 17 00:00:00 2001 From: J Dark Date: Sun, 5 Nov 2023 19:04:33 -0500 Subject: [PATCH] update test --- test/test_surface_quantity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_surface_quantity.py b/test/test_surface_quantity.py index dee0ea5f1..b0801f862 100644 --- a/test/test_surface_quantity.py +++ b/test/test_surface_quantity.py @@ -61,7 +61,8 @@ def test_title_generation(tmp_path, value): field=F.Species("TEST"), surface=F.SurfaceSubdomain1D(id=35, x=1), ) - my_export.initialise_export() + my_export.value = 2.0 + my_export.write(0) title = np.genfromtxt(my_export.filename, delimiter=",", max_rows=1, dtype=str) expected_title = "Flux surface 35: TEST" @@ -110,7 +111,6 @@ def test_writer(tmp_path, value): surface=F.SurfaceSubdomain1D(id=1, x=0), ) my_export.value = 2.0 - my_export.initialise_export() for i in range(10): my_export.write(i)