Skip to content

Commit

Permalink
Unit testing adjustments (#443)
Browse files Browse the repository at this point in the history
* Remove unused import. [LGTM]

* Unused local. [LGTM] (Linting)

* Remove unused imports. [LGTM]

* Unused local. [LGTM] (Linting)

* Unused local. [LGTM] (Linting)
  • Loading branch information
jshcodes authored Nov 23, 2021
1 parent ff73fab commit d9d2ca3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/test_authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def test_failServiceAuth(self):
assert self.failServiceAuth() is True

def test_base_url_lookup(self):
status = self.getConfig()
_ = self.getConfig()
test_falcon = OAuth2(
client_id=self.config["falcon_client_id"],
client_secret=self.config["falcon_client_secret"],
Expand All @@ -246,7 +246,7 @@ def test_base_url_lookup(self):
)

def test_fail_base_url_lookup(self):
status = self.getConfig()
_ = self.getConfig()
test_falcon = OAuth2(
client_id=self.config["falcon_client_id"],
client_secret=self.config["falcon_client_secret"],
Expand Down
1 change: 0 additions & 1 deletion tests/test_intel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""This class tests the intel service class"""
import os
import sys
import pytest
# Authentication via the test_authorization.py
from tests import test_authorization as Authorization
# Import our sibling src folder into the path
Expand Down
2 changes: 0 additions & 2 deletions tests/test_iocs.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# test_iocs.py
# This class tests the iocs service class

import json
import os
import sys
import pytest
# Authentication via the test_authorization.py
from tests import test_authorization as Authorization
#Import our sibling src folder into the path
Expand Down
4 changes: 2 additions & 2 deletions tests/test_sample_uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ def sample_upload_download_delete(self, style: str = "file_data"):
if os.path.exists(TARGET):
os.remove(TARGET)
if hash1 == hash2:
response = falcon.DeleteSampleV3(ids=sha)
_ = falcon.DeleteSampleV3(ids=sha)
return True
else:
response = falcon.DeleteSampleV3(ids=sha)
_ = falcon.DeleteSampleV3(ids=sha)
return False
else:
# Workflow download error, skip it
Expand Down
2 changes: 1 addition & 1 deletion tests/test_uber_api_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def uberCCAWS_TestUploadDownload(self):
hash2 = hash2.hexdigest()
if os.path.exists(TARGET):
os.remove(TARGET)
response = falcon.command("DeleteSampleV3", ids=sha)
_ = falcon.command("DeleteSampleV3", ids=sha)
if hash1 == hash2:
return True
else:
Expand Down

0 comments on commit d9d2ca3

Please sign in to comment.