Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[tests] Add missing import when no auth is required
- Loading branch information
Showing
with
1 addition
and
2 deletions.
-
+1
−2
tests/src/python/qgis_wrapped_server.py
|
@@ -61,7 +61,7 @@ |
|
|
import threading |
|
|
|
|
|
from qgis.core import QgsApplication, QgsCoordinateTransform, QgsCoordinateReferenceSystem |
|
|
from qgis.server import QgsServer, QgsServerRequest, QgsBufferServerRequest, QgsBufferServerResponse |
|
|
from qgis.server import QgsServer, QgsServerRequest, QgsBufferServerRequest, QgsBufferServerResponse, QgsServerFilter |
|
|
|
|
|
QGIS_SERVER_PORT = int(os.environ.get('QGIS_SERVER_PORT', '8081')) |
|
|
QGIS_SERVER_HOST = os.environ.get('QGIS_SERVER_HOST', '127.0.0.1') |
|
@@ -86,7 +86,6 @@ |
|
|
|
|
|
|
|
|
if os.environ.get('QGIS_SERVER_HTTP_BASIC_AUTH') is not None: |
|
|
from qgis.server import QgsServerFilter |
|
|
import base64 |
|
|
|
|
|
class HTTPBasicFilter(QgsServerFilter): |
|
|