From b55025ea047cf7d5b4004aedcb879524215beffc Mon Sep 17 00:00:00 2001 From: sfowl Date: Tue, 26 Nov 2024 13:29:22 +1000 Subject: [PATCH] bump py-nessus-pro (#265) * bump py-nessus-pro * fix unit test --- requirements.txt | 2 +- tests/scanners/nessus/test_nessus.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 8924e54..1d1a7a5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ python-dotenv >= 1.0.0 pyyaml >= 6.0 requests >= 2.27.1 google.cloud.storage >= 2.17.0 -git+https://github.com/sfowl/py-nessus-pro.git@a976182 # custom fork without selenium +git+https://github.com/sfowl/py-nessus-pro.git@41abc31 # custom fork without selenium dacite >= 1.8.1 diff --git a/tests/scanners/nessus/test_nessus.py b/tests/scanners/nessus/test_nessus.py index 8a05642..93fed9e 100644 --- a/tests/scanners/nessus/test_nessus.py +++ b/tests/scanners/nessus/test_nessus.py @@ -9,8 +9,9 @@ class TestNessus: + @patch("py_nessus_pro.PyNessusPro._authenticate") @patch("requests.Session.request") - def test_setup_nessus(self, mock_get): + def test_setup_nessus(self, mock_get, auth): # All this mocking is for PyNessusPro.__init__() which attempts to connect to Nessus mock_get.return_value = Mock(spec=requests.Response) mock_get.return_value.status_code = 200