Skip to content

Commit

Permalink
formatting again
Browse files Browse the repository at this point in the history
  • Loading branch information
frida-161 committed Oct 18, 2022
1 parent 550fb16 commit 1e03947
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions gml_application_schema_toolbox/core/load_gmlas_in_qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,11 @@ def createLayerTreeModelLegendNodes(self, layer_tree_layer):


def import_in_qgis(
gmlas_uri: str, provider: str, auto_join: bool,
add_form_code: bool, schema: Union[str, None] = None
gmlas_uri: str,
provider: str,
auto_join: bool,
add_form_code: bool,
schema: Union[str, None] = None,
):
"""Imports layers from a GMLAS file in QGIS with relations and editor widgets
Expand Down
5 changes: 3 additions & 2 deletions tests/qgis/test_load_in_qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ def convert_and_import(self, xml_file):
# fix geometry types
ds = None
# populate the qgis project
import_in_qgis(gmlas_uri=out_file, provider="SQLite",
auto_join=False, add_form_code=True)
import_in_qgis(
gmlas_uri=out_file, provider="SQLite", auto_join=False, add_form_code=True
)

layers = []
for lid in sorted(QgsProject.instance().mapLayers().keys()):
Expand Down

0 comments on commit 1e03947

Please sign in to comment.