|
10 | 10 | @pytest.mark.skipif( |
11 | 11 | condition=os.name == "nt", reason="submodules seem not to work on windows" |
12 | 12 | ) |
13 | | -def test_checkout_with_submodule(mkgitrepo, src, caplog): |
| 13 | +def test_checkout_with_submodule(mkgitrepo, src, caplog, git_allow_file_protocol): |
14 | 14 | """ |
15 | 15 | Tests the checkout of a module 'egg' with a submodule 'submodule_a' in itith |
16 | 16 | """ |
@@ -50,7 +50,7 @@ def test_checkout_with_submodule(mkgitrepo, src, caplog): |
50 | 50 | @pytest.mark.skipif( |
51 | 51 | condition=os.name == "nt", reason="submodules seem not to work on windows" |
52 | 52 | ) |
53 | | -def test_checkout_with_two_submodules(mkgitrepo, src): |
| 53 | +def test_checkout_with_two_submodules(mkgitrepo, src, git_allow_file_protocol): |
54 | 54 | """ |
55 | 55 | Tests the checkout of a module 'egg' with a submodule 'submodule_a' |
56 | 56 | and a submodule 'submodule_b' in it. |
@@ -102,7 +102,7 @@ def test_checkout_with_two_submodules(mkgitrepo, src): |
102 | 102 | @pytest.mark.skipif( |
103 | 103 | condition=os.name == "nt", reason="submodules seem not to work on windows" |
104 | 104 | ) |
105 | | -def test_checkout_with_two_submodules_recursive(mkgitrepo, src): |
| 105 | +def test_checkout_with_two_submodules_recursive(mkgitrepo, src, git_allow_file_protocol): |
106 | 106 | """ |
107 | 107 | Tests the checkout of a module 'egg' with a submodule 'submodule_a' |
108 | 108 | and a submodule 'submodule_b' in it. |
@@ -145,7 +145,7 @@ def test_checkout_with_two_submodules_recursive(mkgitrepo, src): |
145 | 145 | @pytest.mark.skipif( |
146 | 146 | condition=os.name == "nt", reason="submodules seem not to work on windows" |
147 | 147 | ) |
148 | | -def test_update_with_submodule(mkgitrepo, src): |
| 148 | +def test_update_with_submodule(mkgitrepo, src, git_allow_file_protocol): |
149 | 149 | """ |
150 | 150 | Tests the checkout of a module 'egg' with a submodule 'submodule_a' in it. |
151 | 151 | Add a new 'submodule_b' to 'egg' and check it succesfully initializes. |
@@ -208,7 +208,7 @@ def test_update_with_submodule(mkgitrepo, src): |
208 | 208 | @pytest.mark.skipif( |
209 | 209 | condition=os.name == "nt", reason="submodules seem not to work on windows" |
210 | 210 | ) |
211 | | -def test_update_with_submodule_recursive(mkgitrepo, src): |
| 211 | +def test_update_with_submodule_recursive(mkgitrepo, src, git_allow_file_protocol): |
212 | 212 | """ |
213 | 213 | Tests the checkout of a module 'egg' with a submodule 'submodule_a' in it. |
214 | 214 | Add a new 'submodule_b' to 'egg' and check it succesfully initializes. |
@@ -265,7 +265,7 @@ def test_update_with_submodule_recursive(mkgitrepo, src): |
265 | 265 | @pytest.mark.skipif( |
266 | 266 | condition=os.name == "nt", reason="submodules seem not to work on windows" |
267 | 267 | ) |
268 | | -def test_checkout_with_submodules_option_never(mkgitrepo, src): |
| 268 | +def test_checkout_with_submodules_option_never(mkgitrepo, src, git_allow_file_protocol): |
269 | 269 | """ |
270 | 270 | Tests the checkout of a module 'egg' with a submodule 'submodule_a' in it |
271 | 271 | without initializing the submodule, restricted by global 'never' |
@@ -297,7 +297,7 @@ def test_checkout_with_submodules_option_never(mkgitrepo, src): |
297 | 297 | @pytest.mark.skipif( |
298 | 298 | condition=os.name == "nt", reason="submodules seem not to work on windows" |
299 | 299 | ) |
300 | | -def test_checkout_with_submodules_option_never_source_always(mkgitrepo, src): |
| 300 | +def test_checkout_with_submodules_option_never_source_always(mkgitrepo, src, git_allow_file_protocol): |
301 | 301 | """ |
302 | 302 | Tests the checkout of a module 'egg' with a submodule 'submodule_a' in it |
303 | 303 | and a module 'egg2' with the same submodule, initializing only the submodule |
@@ -358,7 +358,7 @@ def test_checkout_with_submodules_option_never_source_always(mkgitrepo, src): |
358 | 358 | @pytest.mark.skipif( |
359 | 359 | condition=os.name == "nt", reason="submodules seem not to work on windows" |
360 | 360 | ) |
361 | | -def test_checkout_with_submodules_option_always_source_never(mkgitrepo, src): |
| 361 | +def test_checkout_with_submodules_option_always_source_never(mkgitrepo, src, git_allow_file_protocol): |
362 | 362 | """ |
363 | 363 | Tests the checkout of a module 'egg' with a submodule 'submodule_a' in it |
364 | 364 | and a module 'egg2' with the same submodule, not initializing the submodule |
@@ -418,7 +418,7 @@ def test_checkout_with_submodules_option_always_source_never(mkgitrepo, src): |
418 | 418 | @pytest.mark.skipif( |
419 | 419 | condition=os.name == "nt", reason="submodules seem not to work on windows" |
420 | 420 | ) |
421 | | -def test_update_with_submodule_checkout(mkgitrepo, src): |
| 421 | +def test_update_with_submodule_checkout(mkgitrepo, src, git_allow_file_protocol): |
422 | 422 | """ |
423 | 423 | Tests the checkout of a module 'egg' with a submodule 'submodule_a' in it. |
424 | 424 | Add a new 'submodule_b' to 'egg' and check it doesn't get initialized. |
@@ -482,7 +482,7 @@ def test_update_with_submodule_checkout(mkgitrepo, src): |
482 | 482 | @pytest.mark.skipif( |
483 | 483 | condition=os.name == "nt", reason="submodules seem not to work on windows" |
484 | 484 | ) |
485 | | -def test_update_with_submodule_dont_update_previous_submodules(mkgitrepo, src): |
| 485 | +def test_update_with_submodule_dont_update_previous_submodules(mkgitrepo, src, git_allow_file_protocol): |
486 | 486 | """ |
487 | 487 | Tests the checkout of a module 'egg' with a submodule 'submodule_a' in it. |
488 | 488 | Commits changes in the detached submodule, and checks update didn't break |
|
0 commit comments