def setUp(self): super(TestImages, self).setUp() self.useFixture(fixtures.MonkeyPatch( 'dox.config.dockerfile.Dockerfile.exists', base.bool_to_fake(self.dockerfile))) self.useFixture(fixtures.MonkeyPatch( 'dox.config.dox_yaml.DoxYaml.exists', base.bool_to_fake(self.dox_yaml))) self.useFixture(fixtures.MonkeyPatch( 'dox.config.tox_ini.ToxIni.exists', base.bool_to_fake(self.tox_ini))) self.useFixture(fixtures.MonkeyPatch( 'dox.config.dox_yaml.DoxYaml.get_images', get_fake_image(self.dox_value))) self.useFixture(fixtures.MonkeyPatch( 'dox.config.tox_ini.ToxIni.get_images', get_fake_image(self.tox_value)))
def setUp(self): super(TestCommands, self).setUp() self.useFixture(fixtures.MonkeyPatch( 'dox.config.dox_yaml.DoxYaml.exists', base.bool_to_fake(self.dox_yaml))) self.useFixture(fixtures.MonkeyPatch( 'dox.config.tox_ini.ToxIni.exists', base.bool_to_fake(self.tox_ini))) self.useFixture(fixtures.MonkeyPatch( 'dox.config.travis_yaml.TravisYaml.exists', base.bool_to_fake(self.travis_yaml))) self.useFixture(fixtures.MonkeyPatch( 'dox.config.dox_yaml.DoxYaml.get_commands', get_fake_command(self.dox_value))) self.useFixture(fixtures.MonkeyPatch( 'dox.config.tox_ini.ToxIni.get_commands', get_fake_command(self.tox_value))) self.useFixture(fixtures.MonkeyPatch( 'dox.config.travis_yaml.TravisYaml.get_commands', get_fake_command(self.travis_value)))