Skip to content

Commit

Permalink
some more adaptions
Browse files Browse the repository at this point in the history
  • Loading branch information
voisardf committed Nov 27, 2023
1 parent 032bc90 commit f8dd968
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
from sqlalchemy import Integer
from sqlalchemy.orm import declarative_base
from pyramid.httpexceptions import HTTPNotFound, HTTPServerError
from pyramid_oereb.contrib.data_sources.interlis_2_3.sources.hook_methods import get_symbol
from pyramid_oereb.contrib.data_sources.interlis_2_3.sources.models import get_view_service, get_legend_entry
from pyramid_oereb.contrib.data_sources.interlis_2_3.hook_methods import get_symbol
from pyramid_oereb.contrib.data_sources.standard.models import get_view_service, get_legend_entry
from pyramid_oereb.core import b64


@pytest.fixture
def theme_config():
yield {
"srid": 2056,
"code": "ch.BaulinienNationalstrassen",
"geometry_type": "LINESTRING",
"code": "ch.BelasteteStandorteZivileFlugplaetze",
"geometry_type": "GEOMETRYCOLLECTION",
"view_service": {
"layer_index": 1,
"layer_opacity": 0.25,
Expand All @@ -31,13 +31,13 @@ def theme_config():
"class": "pyramid_oereb.contrib.data_sources.interlis_2_3.sources.plr.DatabaseSource",
"params": {
"db_connection": "postgresql://postgres:[email protected]:5432/oereb_test_db",
"model_factory": "pyramid_oereb.contrib.data_sources.interlis_2_3.models.theme.model_factory_string_pk", # noqa: E501
"schema_name": "land_use_plans"
"model_factory": "pyramid_oereb.contrib.data_sources.interlis_2_3.models.theme.model_factory_integer_pk", # noqa: E501
"schema_name": "contaminated_civil_aviation_sites"
}
},
"hooks": {
"get_symbol": "pyramid_oereb.contrib.data_sources.interlis_2_3.hook_methods.get_symbol",
"get_symbol_ref": "pyramid_oereb.contrib.data_sources.interlis_2_3.hook_methods.get_symbol_ref"
"get_symbol_ref": "pyramid_oereb.core.hook_methods.get_symbol_ref"
},
"thresholds": {
"length": {
Expand Down

0 comments on commit f8dd968

Please sign in to comment.