-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix test_exapp #288
base: dev
Are you sure you want to change the base?
Fix test_exapp #288
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
That's why the error is not exposed in CI. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,9 @@ def hello_command_handler(myarg=None, abc=None): | |
class MyCommandsLoader(CLICommandsLoader): | ||
|
||
def load_command_table(self, args): | ||
with CommandGroup(self, 'hello', '__main__#{}') as g: | ||
with CommandGroup(self, 'hello', '{}#{{}}'.format(__name__)) as g: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When invoked from
|
||
g.command('world', 'hello_command_handler', confirmation=True) | ||
with CommandGroup(self, 'abc', '__main__#{}') as g: | ||
with CommandGroup(self, 'abc', '{}#{{}}'.format(__name__)) as g: | ||
g.command('list', 'abc_list_command_handler') | ||
g.command('show', 'a_test_command_handler') | ||
return super(MyCommandsLoader, self).load_command_table(args) | ||
|
@@ -61,8 +61,9 @@ def load_arguments(self, command): | |
|
||
class TestMyScenarios(ScenarioTest): | ||
|
||
def __init__(self, method_name): | ||
super(TestMyScenarios, self).__init__(mycli, method_name) | ||
def setUp(self): | ||
super().setUp() | ||
self.cli = mycli | ||
Comment on lines
+64
to
+66
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Initializing |
||
|
||
def test_hello_world_yes(self): | ||
self.cmd('hello world --yes', checks=[ | ||
|
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.
#287 (comment) explains why positional argument
cli
is removed.