def test_replacements_applied_before_force_name():
    """input_filename_replacements apply to filename, before --name=SeriesName takes effect
    """

    conf = r"""
    {"always_rename": true,
    "select_first": true,

    "force_name": "Scrubs",

    "input_filename_replacements": [
        {"is_regex": true,
        "match": "S01E02 - ",
        "replacement": ""}
    ]
    }
    """

    out_data = run_tvnamer(
        with_files = ['S01E02 - Some File.avi'],
        with_config = conf)

    expected_files = ['S01E02 - Some File.avi']

    verify_out_data(out_data, expected_files, expected_returncode = 2)
input_filename_replacements apply to filename, before --name=SeriesName takes effect
    
tests/test_no_series_in_filename.py