Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 8d5b5ba

Browse files
authored
Merge pull request #328 from jhg/fix_tests_in_windows
Fix tests in Windows
2 parents 4a13aea + 2aba8ac commit 8d5b5ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

highfive/tests/test_newpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_load_json_file(self, mock_dirname):
168168
'builtins.open', mock.mock_open(read_data=json.dumps(contents))
169169
) as mock_file:
170170
assert handler._load_json_file('a-config.json') == contents
171-
mock_file.assert_called_with('/the/path/configs/a-config.json')
171+
mock_file.assert_called_with(os.path.join(mock_dirname.return_value, 'configs', 'a-config.json'))
172172

173173
@mock.patch('highfive.newpr.HighfiveHandler.api_req')
174174
def test_post_comment_success(self, mock_api_req):

0 commit comments

Comments
 (0)