Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 23, 2021
1 parent bd64ecd commit 8515b38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tests/src/python/test_qgsserver_accesscontrol.py
Expand Up @@ -138,7 +138,6 @@ def _execute_request(cls, qs, requestMethod=QgsServerRequest.GetMethod, data=Non
@classmethod
def setUpClass(cls):
"""Run before all tests"""
cls._app = QgsApplication([], False)
cls._server = QgsServer()
cls._execute_request("")
cls._server_iface = cls._server.serverInterface()
Expand All @@ -149,7 +148,6 @@ def setUpClass(cls):
def tearDownClass(cls):
"""Run after all tests"""
del cls._server
cls._app.exitQgis()

def setUp(self):
super().setUp()
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsserver_security.py
Expand Up @@ -39,7 +39,7 @@ def setUpClass(cls):

@classmethod
def tearDownClass(cls):
cls.app.exitQgis()

try:
os.remove(cls.db_clone)
except OSError:
Expand Down

0 comments on commit 8515b38

Please sign in to comment.