Skip to content

Commit

Permalink
Test for ability to use absolute episode number [#67]
Browse files Browse the repository at this point in the history
  • Loading branch information
dbr committed Jan 4, 2011
1 parent 1fee5f3 commit 45107f5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/test_configfunctional.py
Expand Up @@ -114,3 +114,26 @@ def test_lowercase_names():
expected_files = ['Scrubs_-_[01x01]_-_My_First_Day.avi']

verify_out_data(out_data, expected_files)


@attr("functional")
def test_abs_epnmber():
"""Ensure the absolute episode number is available for custom
filenames in config
"""

conf = """
{"filename_with_episode": "%(seriesname)s - %(absoluteepisode)s%(ext)s",
"always_rename": true,
"select_first": true}
"""

out_data = run_tvnamer(
with_files = ['scrubs.s01e01.avi'],
with_config = conf,
with_input = "")

expected_files = ['Scrubs - 01.avi']

verify_out_data(out_data, expected_files)

0 comments on commit 45107f5

Please sign in to comment.