Skip to content

Commit

Permalink
Fix path in tests when running on a windows environment (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobec authored and mirceaulinic committed Dec 19, 2018
1 parent bb2af36 commit f5220ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/base/test_mock_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ def test_not_mocking_getters(self):

with pytest.raises(NotImplementedError) as excinfo:
d.get_route_to()
expected = "You can provide mocked data in {}/get_route_to.1".format(
optional_args["path"]
expected = "You can provide mocked data in {}".format(
os.path.join(optional_args["path"], "get_route_to.1")
)
assert expected in py23_compat.text_type(excinfo.value)

with pytest.raises(NotImplementedError) as excinfo:
d.get_route_to()
expected = "You can provide mocked data in {}/get_route_to.2".format(
optional_args["path"]
expected = "You can provide mocked data in {}".format(
os.path.join(optional_args["path"], "get_route_to.2")
)
assert expected in py23_compat.text_type(excinfo.value)

Expand Down

0 comments on commit f5220ea

Please sign in to comment.