def test_release_override_builder(self): self.releaser_config.set('test', 'builder', 'tito.builder.UpstreamBuilder') releaser = Releaser(PKG_NAME, None, '/tmp/tito/', self.config, {}, 'test', self.releaser_config, False, False, False, **{'offline': True}) self.assertTrue(isinstance(releaser.builder, UpstreamBuilder)) releaser.release(dry_run=True)
def test_release(self): releaser = Releaser(PKG_NAME, None, '/tmp/tito/', self.config, {}, 'test', self.releaser_config, False, False, False, **{'offline': True}) self.assertTrue(isinstance(releaser.builder, Builder)) releaser.release(dry_run=True)