Skip to content

Commit

Permalink
style: run ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed Nov 6, 2024
1 parent 76c9f08 commit 3db2811
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
s = QgsSettings()
data = s.value("ORStools/config")


def pytest_sessionstart(session):
"""
Called after the Session object has been created and
Expand Down
4 changes: 1 addition & 3 deletions tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,4 @@ def test_ORStoolsDialog(self):
dlg.line_tool.canvasDoubleClickEvent(map_dclick)

self.assertTrue(dlg.isVisible())
self.assertEqual(
dlg.routing_fromline_list.item(0).text(), "Point 0: -0.187575, 56.516620"
)
self.assertEqual(dlg.routing_fromline_list.item(0).text(), "Point 0: -0.187575, 56.516620")
4 changes: 3 additions & 1 deletion tests/test_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ def test_export(self):
export = ORSExportAlgo().create()
dest_id = export.processAlgorithm(parameters, self.context, self.feedback)
processed_layer = QgsProcessingUtils.mapLayerFromString(dest_id["OUTPUT"], self.context)
processed_nodes = QgsProcessingUtils.mapLayerFromString(dest_id["OUTPUT_POINT"], self.context)
processed_nodes = QgsProcessingUtils.mapLayerFromString(
dest_id["OUTPUT_POINT"], self.context
)

self.assertEqual(type(processed_layer), QgsVectorLayer)
self.assertEqual(type(processed_nodes), QgsVectorLayer)

0 comments on commit 3db2811

Please sign in to comment.