Skip to content

Commit

Permalink
adding more command line tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgriffith committed Aug 8, 2024
1 parent 0165f93 commit 662ca90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_common_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import puremagic

LOCAL_DIR = os.path.realpath(os.path.dirname(__file__))
RESOUCE_DIR = os.path.join(LOCAL_DIR, "resources")
IMAGE_DIR = os.path.join(LOCAL_DIR, "resources", "images")
VIDEO_DIR = os.path.join(LOCAL_DIR, "resources", "video")
AUDIO_DIR = os.path.join(LOCAL_DIR, "resources", "audio")
Expand Down Expand Up @@ -171,7 +172,9 @@ def test_cmd_options(self):
"""Test CLI options"""
from puremagic.main import command_line_entry

command_line_entry(__file__, "test.py")
command_line_entry(__file__, os.path.join(AUDIO_DIR, "test.mp3"), "-v")
command_line_entry(__file__, "DOES NOT EXIST FILE")
command_line_entry(__file__, os.path.join(RESOUCE_DIR, "fake_file"), "-v")

def test_bad_magic_input(self):
"""Test bad magic input"""
Expand Down

0 comments on commit 662ca90

Please sign in to comment.