Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/test_argsParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ def test_arg_parser_with_source_file(mock_config):
assert args.output == "result"


# Test with source file
def test_arg_parser_with_more_than_two_source_files(mock_config):
with patch("sys.argv", ["code_mage.py", "example.js", "sample.js"]):
args = arg_parser(mock_config)
assert args.source_files == ["example.js", "sample.js"]
assert args.language == "python"
assert args.output == "result"


# Test with --language option
def test_arg_parser_with_language_option(mock_config):
with patch("sys.argv", ["code_mage.py", "--language", "java"]):
Expand Down
Loading