~pjdc/mojo/bundle-fix-get-command-list-fallout

« back to all changes in this revision

Viewing changes to mojo/tests/test_phase.py

  • Committer: mergebot at canonical
  • Author(s): "Tom Haddon"
  • Date: 2020-03-24 09:23:37 UTC
  • mfrom: (532.2.4 test-and-lint)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20200324092337-ivjwzgtkckwtd092
Add necessary dependencies to run lint in LXC, a Makefile target to make it more visible, and fix majority of lint issues

Reviewed-on: https://code.launchpad.net/~mthaddon/mojo/lint/+merge/381031
Reviewed-by: Stuart Bishop <stuart.bishop@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
 
176
176
{juju_path} config nrpe export_nagios_definitions=False hostgroups= nagios_master=None procs= swap=-w 40% -c 25%""".format(
177
177
            juju_path=JUJU_PATH
178
 
        )
 
178
            )
179
179
        self.assertEqual(_logging_info.call_args, mock.call(expected_logging))
180
180
        self.assertFalse(_check_call.called)
181
181
        # Now check with a diff and preview=False we log but also execute our
491
491
        self.assertEqual(phase._get_command('bionic'), 'juju deploy')
492
492
 
493
493
 
494
 
 
495
494
class CollectPhaseTestCase(TestCase, utils.MojoTestCaseMixin):
496
495
 
497
496
    def setUp(self):