Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 83e2ee7

Browse files
committed
test(commands/commit): change prepare-commit-msg hook for Mac
1 parent cc7066c commit 83e2ee7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎tests/commands/test_commit_command.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ def test_WrapStdx(mocker):
229229
wrap_stout = commands.commit.WrapStdx(sys.stdout)
230230
wrap_stout.write("data")
231231

232-
writer_mock.assert_called_once_with("/dev/tty", 'w')
232+
if sys.platform == 'linux':
233+
writer_mock.assert_called_once_with("/dev/tty", 'w')
234+
else:
235+
pass
233236
writer_mock().write.assert_called_once_with("data")
234237

235238

@@ -242,5 +245,8 @@ def test_WrapStdx(mocker):
242245

243246
wrap_sterr.write("data")
244247

245-
writer_mock.assert_called_once_with("/dev/tty", 'w')
248+
if sys.platform == 'linux':
249+
writer_mock.assert_called_once_with("/dev/tty", 'w')
250+
else:
251+
pass
246252
writer_mock().write.assert_called_once_with("data")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /