Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f416ffa
commit ef94dec
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Tests ZPlayer. | ||
# | ||
# To run: | ||
# | ||
# python tests/test_zplayer.py | ||
|
||
import sys | ||
import os | ||
import unittest | ||
from pathlib import Path | ||
|
||
script_dir = Path(os.path.dirname(os.path.realpath(__file__))) | ||
root_dir = script_dir.parent | ||
|
||
sys.path.append(str((root_dir / 'scripts').absolute())) | ||
import run_target | ||
|
||
class TestZPlayer(unittest.TestCase): | ||
def setUp(self): | ||
self.maxDiff = None | ||
|
||
def test_file_new(self): | ||
run_target.check_run('zplayer', [ | ||
'-test-zc', | ||
]) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |