Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Try to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cag committed Apr 16, 2019
1 parent 1eff16b commit 942a579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scanners/tenable_io_scanner.py
Expand Up @@ -41,12 +41,12 @@ def scan(self, hostname):
# Run a basic network scan on the target
scan_name = "VA for " + hostname
nscan = self.client.scan_helper.create(
name=scan_name, text_targets=hostname, template="basic"
name=scan_name, text_targets=hostname, template='basic'
)
return nscan

except TenableIOApiException as TIOException:
self.logger.error("[-] Tenable.io scan failed: {}".format(TIOException))
self.logger.error("Tenable.io scan failed: {}".format(TIOException))
return False

def __getAPIKey(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tenable_io_scanner.py
Expand Up @@ -97,8 +97,8 @@ def test_scan(self):
# nscan is a ScanRef object.
# Note that we are NOT launching the scan here, we do not
# want an actual scan to be kicked off as a part of CI
nscan.delete(force_stop=True)
# scan_details is a scan_detail object
scan_detail = nscan.details()
# ScanRef object ID should the ScanDetail object ID
assert scan_detail.info.object_id == nscan.id
nscan.delete(force_stop=True)

0 comments on commit 942a579

Please sign in to comment.