From 427088e4814479f56301e48407594e18c068bd29 Mon Sep 17 00:00:00 2001 From: tgalvin Date: Tue, 31 Dec 2024 19:01:56 +1100 Subject: [PATCH] added stoke-v rename title test --- tests/test_wsclean.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_wsclean.py b/tests/test_wsclean.py index 80474c0e..ad1f2539 100644 --- a/tests/test_wsclean.py +++ b/tests/test_wsclean.py @@ -157,6 +157,15 @@ def test_rename_wsclean_path(): assert _rename_wsclean_file(input_path=ex) == out_ex +def test_rename_stokes_v_model(): + """Some model files are not being renamed correctly. Arr""" + + ex = "SB57988.RACS_1415-46.beam34.round4.v-MFS-model.fits" + out_ex = "SB57988.RACS_1415-46.beam34.round4.v.MFS.model.fits" + + assert _rename_wsclean_title(name_str=ex) == out_ex + + def test_regex_rename_wsclean_title(): """Rename the wsclean supplied using regex"""