24 lines
787 B
Python
24 lines
787 B
Python
# pygitversionhelper (c) by chacha
|
|
#
|
|
# pygitversionhelper is licensed under a
|
|
# Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Unported License.
|
|
#
|
|
# You should have received a copy of the license along with this
|
|
# work. If not, see <https://creativecommons.org/licenses/by-nc-sa/4.0/>.
|
|
|
|
import unittest
|
|
from io import StringIO
|
|
from contextlib import redirect_stdout,redirect_stderr
|
|
|
|
print(__name__)
|
|
print(__package__)
|
|
|
|
from src import pygitversionhelper
|
|
|
|
class Test_gitversionhelper(unittest.TestCase):
|
|
def test_version(self):
|
|
version = pygitversionhelper.gitversionhelper.version.getLastVersion(same_branch=False,version_std="PEP440").bump(bump_type="dev").doFormatVersion(version_std="SemVer")
|
|
self.assertNotEqual(version,"?.?.?")
|
|
|
|
|
|
|