Beispiel #1
0
def test_version2str():
    ver = ScmVersion("1.0", distance=0)
    ver_str = integration.version2str(ver)
    assert ver_str == "1.0"
    ver = ScmVersion("1.0", distance=1)
    ver_str = integration.version2str(ver)
    assert ver_str == "1.0.post0.dev1"
    ver = ScmVersion("1.0.dev0", distance=1)
    ver_str = integration.version2str(ver)
    assert ver_str == "1.0.post0.dev1"
def test_version2str():
    ver = ScmVersion('1.0', distance=0)
    ver_str = integration.version2str(ver)
    assert ver_str == '1.0'
    ver = ScmVersion('1.0', distance=1)
    ver_str = integration.version2str(ver)
    assert ver_str == '1.0.post0.dev1'
    ver = ScmVersion('1.0.dev0', distance=1)
    ver_str = integration.version2str(ver)
    assert ver_str == '1.0.post0.dev1'
Beispiel #3
0
def test_version2str():
    ver = ScmVersion('1.0', distance=0)
    ver_str = integration.version2str(ver)
    assert ver_str == '1.0'
    ver = ScmVersion('1.0', distance=1)
    ver_str = integration.version2str(ver)
    assert ver_str == '1.0.post0.dev1'
    ver = ScmVersion('1.0.dev0', distance=1)
    ver_str = integration.version2str(ver)
    assert ver_str == '1.0.post0.dev1'