Beispiel #1
0
    def test_bump(self):
        self.releaser.config[ReplaceHook.key] = {
            "dev": "dev-{version}",
            "stable": "stable-{tag}",
        }

        replacements = []
        hook = ReplaceHook(self.releaser)
        hook.bump(replacements)

        assert replacements == [("dev-1.2.3.dev", "stable-v1.2.3")]
Beispiel #2
0
    def test_bump(self):
        self.releaser.config[ReplaceHook.key] = {
            'dev': 'dev-{version}',
            'stable': 'stable-{tag}',
        }

        replacements = []
        hook = ReplaceHook(self.releaser)
        hook.bump(replacements)

        assert replacements == [('dev-1.2.3.dev', 'stable-v1.2.3')]
Beispiel #3
0
    def test_bump(self):
        self.releaser.config[ReplaceHook.key] = {
            'dev': 'dev-{version}',
            'stable': 'stable-{tag}',
        }

        replacements = []
        hook = ReplaceHook(self.releaser)
        hook.bump(replacements)

        assert replacements == [('dev-1.2.3.dev', 'stable-v1.2.3')]