Skip to content

Commit

Permalink
Fix path in tests when running on a windows environment (napalm-autom…
Browse files Browse the repository at this point in the history
  • Loading branch information
jobec authored and ExaneServerTeam committed Mar 4, 2020
1 parent 1cbcbac commit 09a6579
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/base/test_mock_driver.py
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 09a6579

Please sign in to comment.