Ejemplo n.º 1
0
def test_update_tox_envlist_with_suffixes():
    result = update_tox_envlist(
        'py27,py34,py35,py36,py37,py27-numpy,py37-numpy,pypy,pypy3',
        ['3.6', '3.7'])
    assert result == 'py36,py37,py37-numpy,pypy,pypy3'
Ejemplo n.º 2
0
def test_update_tox_envlist_with_braces(s, expected):
    result = update_tox_envlist(s, ['3.6', '3.7'])
    assert result == expected
Ejemplo n.º 3
0
def test_update_tox_envlist():
    result = update_tox_envlist('py26,py27,pypy,flake8', ['3.6', '3.7'])
    assert result == 'py36,py37,pypy,flake8'
Ejemplo n.º 4
0
def test_update_tox_envlist_keeps_the_right_pypy(versions, expected):
    result = update_tox_envlist('py27,py37,pypy,pypy3,flake8', versions)
    assert result == expected