Skip to content

Commit 67a39bb

Browse files
committed
Added and modified some graph tests
1 parent a0bacf5 commit 67a39bb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/test_graph.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,33 @@
1919
[(['python3crystax'], Bootstrap.get_bootstrap('sdl2', ctx)),
2020
(['kivy', 'python3crystax'], Bootstrap.get_bootstrap('sdl2', ctx))])
2121

22+
2223
@pytest.mark.parametrize('names,bootstrap', valid_combinations)
2324
def test_valid_recipe_order_and_bootstrap(names, bootstrap):
2425
get_recipe_order_and_bootstrap(ctx, names, bootstrap)
2526

2627
invalid_combinations = [[['python2', 'python3crystax'], None],
2728
[['python3'], Bootstrap.get_bootstrap('pygame', ctx)]]
2829

30+
2931
@pytest.mark.parametrize('names,bootstrap', invalid_combinations)
3032
def test_invalid_recipe_order_and_bootstrap(names, bootstrap):
3133
with pytest.raises(SystemExit):
3234
get_recipe_order_and_bootstrap(ctx, names, bootstrap)
3335

36+
3437
def test_bootstrap_dependency_addition():
3538
build_order, python_modules, bs = get_recipe_order_and_bootstrap(
3639
ctx, ['kivy'], None)
3740
assert (('hostpython2' in build_order) or ('hostpython3' in build_order))
3841

42+
43+
def test_bootstrap_dependency_addition2():
44+
build_order, python_modules, bs = get_recipe_order_and_bootstrap(
45+
ctx, ['kivy', 'python2'], None)
46+
assert 'hostpython2' in build_order
47+
48+
3949
if __name__ == "__main__":
40-
get_recipe_order_and_bootstrap(ctx, ['python3'], Bootstrap.get_bootstrap('sdl2', ctx))
50+
get_recipe_order_and_bootstrap(ctx, ['python3'],
51+
Bootstrap.get_bootstrap('sdl2', ctx))

0 commit comments

Comments
 (0)