Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Sep 19, 2023
1 parent da1c146 commit 96900f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/test_linearref.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_invalid_lr4():
def test_valid_lr():
ls = LineString([(0, 0), (0, 100)])
new_line = linearref.create_line(ls, 0, 50)
assert type(new_line) == LineString
assert type(new_line) is LineString
assert new_line.is_valid
assert new_line.length == 50
expected = [(0.0, 0.0), (0.0, 50.0)]
Expand All @@ -61,7 +61,7 @@ def test_valid_lr():
def test_valid_lr2():
ls = LineString([(0, 0), (0, 100)])
new_line = linearref.create_line(ls, 1, 50)
assert type(new_line) == LineString
assert type(new_line) is LineString
assert new_line.is_valid
assert new_line.length == 49
expected = [(0.0, 1.0), (0.0, 50.0)]
Expand All @@ -78,7 +78,7 @@ def test_ring_feature():
assert ls.length == 400

new_line = linearref.create_line(ls, 0, 400)
assert type(new_line) == LineString
assert type(new_line) is LineString
assert new_line.is_valid

assert new_line.length == 400
Expand Down
4 changes: 2 additions & 2 deletions tests/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_add_edge_with_reverse_lookup():
def test_create_graph():

net = loader.create_graph()
assert type(net) == networkx.classes.multigraph.MultiGraph
assert type(net) is networkx.classes.multigraph.MultiGraph
version = wayfarer.__version__
assert (
str(net)
Expand All @@ -44,7 +44,7 @@ def test_create_graph():
def test_create_multidigraph():

net = loader.create_graph(graph_type=networkx.MultiDiGraph)
assert type(net) == networkx.classes.multidigraph.MultiDiGraph
assert type(net) is networkx.classes.multidigraph.MultiDiGraph
version = wayfarer.__version__
assert (
str(net)
Expand Down

0 comments on commit 96900f5

Please sign in to comment.