Skip to content

Commit

Permalink
Make test compatible with py3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Sep 10, 2020
1 parent 7eef9a1 commit 8b37c90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_preferencehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

from unittest import TestCase
from unittest.mock import call, patch, Mock, MagicMock
from collections import OrderedDict

from ospd.vts import Vts

Expand Down Expand Up @@ -567,7 +568,7 @@ def test_set_alive_pinghost(self, mock_kb):
p.prepare_alive_test_option_for_openvas()
p.prepare_nvt_preferences()

p.kbdb.add_scan_preferences.assert_called_with(
p._openvas_scan_id,
alive_test_out,
)
for key, value in p._nvts_params.items():
self.assertTrue(
"{0}|||{1}".format(key, value) in alive_test_out
)

0 comments on commit 8b37c90

Please sign in to comment.