forked from python-babel/babel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract CLI: Add
input-dirs
alias for input-paths
.
Just in case some script expects to be able to pass `--input-dirs`. Fixes python-babel#330 Augments 19957e2
- Loading branch information
Showing
2 changed files
with
24 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
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 |
---|---|---|
|
@@ -132,6 +132,19 @@ def test_input_paths_handle_spaces_after_comma(self): | |
|
||
self.assertEqual([this_dir, self.datadir], self.cmd.input_paths) | ||
|
||
def test_input_dirs_is_alias_for_input_paths(self): | ||
self.cmd.input_dirs = this_dir | ||
self.cmd.output_file = self._pot_file() | ||
self.cmd.finalize_options() | ||
# Gets listified in `finalize_options`: | ||
assert self.cmd.input_paths == [self.cmd.input_dirs] | ||
|
||
def test_input_dirs_is_mutually_exclusive_with_input_paths(self): | ||
self.cmd.input_dirs = this_dir | ||
self.cmd.input_paths = this_dir | ||
self.cmd.output_file = self._pot_file() | ||
self.assertRaises(DistutilsOptionError, self.cmd.finalize_options) | ||
|
||
def test_extraction_with_default_mapping(self): | ||
self.cmd.copyright_holder = 'FooBar, Inc.' | ||
self.cmd.msgid_bugs_address = '[email protected]' | ||
|
b8d7d48
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack b8d7d48
::wonders if this will work::