Skip to content

Commit baabd86

Browse files
committed
Enables unit tests in tox
Unit tests should be also ran in Continous Integration for both Python2 and Python3. Also fixes `invalid_combinations` list as `python3` recipe was removed in a19e884.
1 parent b1f7033 commit baabd86

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/test_graph.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
def test_valid_recipe_order_and_bootstrap(names, bootstrap):
2525
get_recipe_order_and_bootstrap(ctx, names, bootstrap)
2626

27-
invalid_combinations = [[['python2', 'python3crystax'], None],
28-
[['python3'], Bootstrap.get_bootstrap('pygame', ctx)]]
27+
invalid_combinations = [[['python2', 'python3crystax'], None],]
2928

3029

3130
@pytest.mark.parametrize('names,bootstrap', invalid_combinations)

tox.ini

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[tox]
2-
envlist = pep8
3-
# no setup.py to be ran
4-
skipsdist = True
2+
envlist = pep8,py27,py3
3+
4+
[testenv]
5+
deps = pytest
6+
commands = pytest tests/
57

68
[testenv:pep8]
79
deps = flake8

0 commit comments

Comments
 (0)