tests: add shared mocks and remove bad import

This commit re-adds some of the shared mock fields for testing
and removes a bad import from test_snaplist. These are changes
that shouldn't have been part of the previously reverted patch:
0a70a969d4
This commit is contained in:
Chris Peterson 2023-10-25 15:34:23 -07:00
parent 0a70a969d4
commit 6c27d656f2
2 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import unittest
from unittest.mock import AsyncMock, Mock
from unittest.mock import AsyncMock
import requests

View File

@ -43,4 +43,9 @@ def make_app(model=None):
app.opts = mock.Mock()
app.opts.dry_run = True
app.scale_factor = 1000
app.echo_syslog_id = None
app.log_syslog_id = None
app.report_start_event = mock.Mock()
app.report_finish_event = mock.Mock()
return app