Skip to content

Commit

Permalink
[py] fix os path in test for Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Tierney <[email protected]>
  • Loading branch information
lmtierney committed Oct 18, 2018
1 parent c731a53 commit daf2e0c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ def test_raises_exception_if_extension_does_not_exist(options):


def test_add_extension(options, mocker):
pth = path.abspath(path.expanduser('/foo/bar'))
mocker.patch('os.path.exists').return_value = True
options.add_extension('/foo/bar')
assert '/foo/bar' in options._extension_files
options.add_extension(pth)
assert pth in options._extension_files


def test_raises_exception_if_encoded_extension_is_falsy(options):
Expand Down

0 comments on commit daf2e0c

Please sign in to comment.