How to use the aiopg._parse_version function in aiopg

To help you get started, we’ve selected a few aiopg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aio-libs / aiopg / tests / test_version.py View on Github external
def test_rc():
    assert (0, 1, 2, 'candidate', 5) == _parse_version('0.1.2c5')
    assert (0, 1, 2, 'candidate', 0) == _parse_version('0.1.2c')
github aio-libs / aiopg / tests / test_version.py View on Github external
def test_alpha():
    assert (0, 1, 2, 'alpha', 2) == _parse_version('0.1.2a2')
    assert (1, 2, 3, 'alpha', 0) == _parse_version('1.2.3a')
github aio-libs / aiopg / tests / test_version.py View on Github external
def test_rc():
    assert (0, 1, 2, 'candidate', 5) == _parse_version('0.1.2c5')
    assert (0, 1, 2, 'candidate', 0) == _parse_version('0.1.2c')
github aio-libs / aiopg / tests / test_version.py View on Github external
def test_final():
    assert (0, 1, 2, 'final', 0) == _parse_version('0.1.2')
github aio-libs / aiopg / tests / test_version.py View on Github external
def test_beta():
    assert (0, 1, 2, 'beta', 2) == _parse_version('0.1.2b2')
    assert (0, 1, 2, 'beta', 0) == _parse_version('0.1.2b')
github aio-libs / aiopg / tests / test_version.py View on Github external
def test_alpha():
    assert (0, 1, 2, 'alpha', 2) == _parse_version('0.1.2a2')
    assert (1, 2, 3, 'alpha', 0) == _parse_version('1.2.3a')
github aio-libs / aiopg / tests / test_version.py View on Github external
def test_invalid():
    pytest.raises(ImportError, _parse_version, '0.1')
    pytest.raises(ImportError, _parse_version, '0.1.1.2')
    pytest.raises(ImportError, _parse_version, '0.1.1z2')
github aio-libs / aiopg / tests / test_version.py View on Github external
def test_beta():
    assert (0, 1, 2, 'beta', 2) == _parse_version('0.1.2b2')
    assert (0, 1, 2, 'beta', 0) == _parse_version('0.1.2b')