Skip to content

Commit

Permalink
bump py-nessus-pro (#265)
Browse files Browse the repository at this point in the history
* bump py-nessus-pro

* fix unit test
  • Loading branch information
sfowl authored Nov 26, 2024
1 parent e36ad50 commit b55025e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion tests/scanners/nessus/test_nessus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b55025e

Please sign in to comment.