From 2024927f83c37a4dbc1f499a114fa5bb3905c784 Mon Sep 17 00:00:00 2001 From: Martin Fleischmann Date: Fri, 8 Apr 2022 22:37:09 +0100 Subject: [PATCH] lint --- tests/test_utils.py | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index c9e0bb54..76790620 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -62,14 +62,11 @@ def test_gdf_to_nx(self): ) dual = mm.gdf_to_nx(self.df_streets, approach="dual", angle="ang") - assert ( - dual.edges[ - (1603499.42326969, 6464328.7520580515), - (1603510.1061735682, 6464204.555117119), - 0, - ] - == {"ang": 117.18288698243317} - ) + assert dual.edges[ + (1603499.42326969, 6464328.7520580515), + (1603510.1061735682, 6464204.555117119), + 0, + ] == {"ang": 117.18288698243317} dual = mm.gdf_to_nx( self.df_streets, approach="dual", angles=False, multigraph=False @@ -85,13 +82,10 @@ def test_gdf_to_nx(self): dual = mm.gdf_to_nx(self.df_streets, approach="dual", multigraph=False) assert isinstance(nx, networkx.Graph) - assert ( - dual.edges[ - (1603499.42326969, 6464328.7520580515), - (1603510.1061735682, 6464204.555117119), - ] - == {"angle": 117.18288698243317} - ) + assert dual.edges[ + (1603499.42326969, 6464328.7520580515), + (1603510.1061735682, 6464204.555117119), + ] == {"angle": 117.18288698243317} with pytest.raises(ValueError): mm.gdf_to_nx(self.df_streets, approach="dual", directed=True)