Skip to content

Commit

Permalink
removed .testdir files from testing folder structure.
Browse files Browse the repository at this point in the history
added tests to confirm correct implementation of seasonFolder.
  • Loading branch information
Bas-Man committed May 6, 2018
1 parent caede1a commit ae8d745
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/05MainTestImport.t
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ $obj->delete(1);
$obj->newShowFolder(getcwd . '/t/test-data/delete_list/');
$obj->processNewShows();

$obj->seasonFolder(0);
$obj->newShowFolder(getcwd . '/t/test-data/noseason_list/');
$obj->processNewShows();


subtest "Check if there were errors" => sub {
$obj->wereThereErrors();
Expand Down
8 changes: 8 additions & 0 deletions t/08CheckSuccessfulImport.t
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,12 @@ ok(-e $file . "S.W.A.T.2018.S01E01.avi", "S.W.A.T.2018.S01E01.avi has not been u

};

subtest "Test seasonFolder option as false. Do not create season Folders " => sub {

$outputPath = "t/TV Shows/Winter/";
$file = getcwd . "/" . $outputPath;
ok(-e $file . "Winter.S01E01.avi", "Winter.S01E01.avi is found in $outputPath");
ok(-e $file . "Winter.S02E01.avi", "Winter.S02E01.avi is found in $outputPath");
};

done_testing();
Binary file modified t/test-data.tar.gz
Binary file not shown.
Binary file modified t/tv-shows.tar.gz
Binary file not shown.

0 comments on commit ae8d745

Please sign in to comment.