Skip to content

Commit

Permalink
added stoke-v rename title test
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalvin committed Dec 31, 2024
1 parent db47bce commit 427088e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_wsclean.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""

Expand Down

0 comments on commit 427088e

Please sign in to comment.