Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76b4205

Browse files
author
Anthony Sottile
committed
More fixes for tests under osx
1 parent aae98a0 commit 76b4205

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

testing/resources/ruby_1_9_3_hooks_repo/lib/.gitignore

Whitespace-only changes.

testing/resources/ruby_hooks_repo/lib/.gitignore

Whitespace-only changes.

tests/repository_test.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_versioned_python_hook(tmpdir_factory, store):
5555
def test_run_a_node_hook(tmpdir_factory, store):
5656
_test_hook_repo(
5757
tmpdir_factory, store, 'node_hooks_repo',
58-
'foo', [], 'Hello World\n',
58+
'foo', ['/dev/null'], 'Hello World\n',
5959
)
6060

6161

@@ -73,7 +73,7 @@ def test_run_versioned_node_hook(tmpdir_factory, store):
7373
def test_run_a_ruby_hook(tmpdir_factory, store):
7474
_test_hook_repo(
7575
tmpdir_factory, store, 'ruby_hooks_repo',
76-
'ruby_hook', [], 'Hello world from a ruby hook\n',
76+
'ruby_hook', ['/dev/null'], 'Hello world from a ruby hook\n',
7777
)
7878

7979

@@ -82,15 +82,17 @@ def test_run_a_ruby_hook(tmpdir_factory, store):
8282
def test_run_versioned_ruby_hook(tmpdir_factory, store):
8383
_test_hook_repo(
8484
tmpdir_factory, store, 'ruby_1_9_3_hooks_repo',
85-
'ruby_hook', [], '1.9.3\n484\nHello world from a ruby hook\n',
85+
'ruby_hook',
86+
['/dev/null'],
87+
'1.9.3\n484\nHello world from a ruby hook\n',
8688
)
8789

8890

8991
@pytest.mark.integration
9092
def test_system_hook_with_spaces(tmpdir_factory, store):
9193
_test_hook_repo(
9294
tmpdir_factory, store, 'system_hook_with_spaces_repo',
93-
'system-hook-with-spaces', [], 'Hello World\n',
95+
'system-hook-with-spaces', ['/dev/null'], 'Hello World\n',
9496
)
9597

9698

0 commit comments

Comments
 (0)