mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-07 00:43:21 +00:00
Some more stabilization of unittests
This commit is contained in:
parent
71d9c6d0f4
commit
d60e95ede7
20 changed files with 122 additions and 33 deletions
|
|
@ -86,6 +86,7 @@ class _ApiServerCase(unittest.TestCase):
|
|||
"""
|
||||
|
||||
def setUp(self):
|
||||
self._saved_batch = conf.batch
|
||||
conf.batch = True
|
||||
|
||||
# snapshot mutated globals
|
||||
|
|
@ -122,6 +123,7 @@ class _ApiServerCase(unittest.TestCase):
|
|||
api.DataStore.username = self._saved["username"]
|
||||
api.DataStore.password = self._saved["password"]
|
||||
api.Database.filepath = self._saved["filepath"]
|
||||
conf.batch = self._saved_batch
|
||||
|
||||
def _new_task(self):
|
||||
code, parsed, _ = _wsgi_call("GET", "/task/new")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue