Skip to content

Commit

Permalink
Update tests to new exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fizzlebert committed Dec 20, 2018
1 parent 717c78b commit c2db53d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tests/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

from amazing.dijkstra import Dijkstra
from amazing.astar import Astar
from amazing import errors
from amazing.maze import Maze
from amazing import exceptions, maze
4 changes: 2 additions & 2 deletions tests/test_astar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from context import Astar, errors
from context import Astar, exceptions

import pytest

Expand All @@ -17,5 +17,5 @@ def test_scenario():


def test_unknown_node():
with pytest.raises(errors.NodeNotFound):
with pytest.raises(exceptions.NodeNotFound):
graph.shortest_path("a", "g")
4 changes: 2 additions & 2 deletions tests/test_dijkstra.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from context import Dijkstra, errors
from context import Dijkstra, exceptions

import pytest

Expand All @@ -17,5 +17,5 @@ def test_scenario():


def test_unknown_node():
with pytest.raises(errors.NodeNotFound):
with pytest.raises(exceptions.NodeNotFound):
graph.shortest_path("a", "g")

0 comments on commit c2db53d

Please sign in to comment.