Skip to content

Commit daaa5ba

Browse files
committed
f
1 parent 6adf988 commit daaa5ba

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

tests/src/python/test_qgsserver_accesscontrol.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@
3333
import base64
3434

3535

36+
XML_NS = \
37+
'service="WFS" version="1.0.0" ' \
38+
'xmlns:wfs="http://www.opengis.net/wfs" ' \
39+
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' \
40+
'xmlns:ogc="http://www.opengis.net/ogc" ' \
41+
'xmlns="http://www.opengis.net/wfs" updateSequence="0" ' \
42+
'xmlns:xlink="http://www.w3.org/1999/xlink" ' \
43+
'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd" ' \
44+
'xmlns:gml="http://www.opengis.net/gml" ' \
45+
'xmlns:ows="http://www.opengis.net/ows" '
46+
47+
3648
class RestrictedAccessControl(QgsAccessControlFilter):
3749

3850
""" Used to have restriction access """

tests/src/python/test_qgsserver_accesscontrol_wfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import urllib.parse
3232
import urllib.error
3333
import base64
34-
from test_qgsserver_accesscontrol import TestQgsServerAccessControl
34+
from test_qgsserver_accesscontrol import TestQgsServerAccessControl, XML_NS
3535

3636

3737
class TestQgsServerAccessControlWFS(TestQgsServerAccessControl):

tests/src/python/test_qgsserver_accesscontrol_wfstransactional.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,8 @@
3131
import urllib.parse
3232
import urllib.error
3333
import base64
34-
from test_qgsserver_accesscontrol import TestQgsServerAccessControl
35-
36-
37-
XML_NS = \
38-
'service="WFS" version="1.0.0" ' \
39-
'xmlns:wfs="http://www.opengis.net/wfs" ' \
40-
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' \
41-
'xmlns:ogc="http://www.opengis.net/ogc" ' \
42-
'xmlns="http://www.opengis.net/wfs" updateSequence="0" ' \
43-
'xmlns:xlink="http://www.w3.org/1999/xlink" ' \
44-
'xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd" ' \
45-
'xmlns:gml="http://www.opengis.net/gml" ' \
46-
'xmlns:ows="http://www.opengis.net/ows" '
34+
from test_qgsserver_accesscontrol import TestQgsServerAccessControl, XML_NS
35+
4736

4837
WFS_TRANSACTION_INSERT = """<?xml version="1.0" encoding="UTF-8"?>
4938
<wfs:Transaction {xml_ns}>

0 commit comments

Comments
 (0)