Skip to content

Commit 4b1f538

Browse files
committed
ci: Fix linting issue
1 parent 8eaf76e commit 4b1f538

File tree

4 files changed

+8
-24
lines changed

4 files changed

+8
-24
lines changed

tests/checker/reputation/test_domain.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def setUp(self) -> None:
7272
Setups everything we need.
7373
"""
7474

75-
upstream_result = super().setUp()
75+
super().setUp()
7676

7777
self.checker = DomainReputationChecker()
7878
self.checker.ipv4_reputation_query_tool.source_file = self.tempfile.name
@@ -83,22 +83,18 @@ def setUp(self) -> None:
8383
# Not needed in this scope :-)
8484
self.checker.do_syntax_check_first = False
8585

86-
return upstream_result
87-
8886
def tearDown(self) -> None:
8987
"""
9088
Destroys everything previously initiated for the tests.
9189
"""
9290

93-
upstream_result = super().tearDown()
91+
super().tearDown()
9492

9593
self.dns_query_tool_path.stop()
9694

9795
del self.dns_query_tool_path
9896
del self.mock_query_tool
9997

100-
return upstream_result
101-
10298
def test_query_status_positive(self) -> None:
10399
"""
104100
Tests the method which let us query the status for the case that

tests/checker/reputation/test_domain_and_ip.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def setUp(self) -> None:
7272
Setups everything we need.
7373
"""
7474

75-
upstream_result = super().setUp()
75+
super().setUp()
7676

7777
self.checker = DomainAndIPReputationChecker()
7878
self.checker.ipv4_reputation_query_tool.source_file = self.tempfile.name
@@ -83,22 +83,18 @@ def setUp(self) -> None:
8383
# Not needed in this scope :-)
8484
self.checker.do_syntax_check_first = False
8585

86-
return upstream_result
87-
8886
def tearDown(self) -> None:
8987
"""
9088
Destroys everything previously initiated for the tests.
9189
"""
9290

93-
upstream_result = super().tearDown()
91+
super().tearDown()
9492

9593
self.dns_query_tool_path.stop()
9694

9795
del self.dns_query_tool_path
9896
del self.mock_query_tool
9997

100-
return upstream_result
101-
10298
def test_query_status_domain(self) -> None:
10399
"""
104100
Tests the method which let us query the status for the case that

tests/checker/reputation/test_ip.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def setUp(self) -> None:
7272
Setups everything we need.
7373
"""
7474

75-
upstream_result = super().setUp()
75+
super().setUp()
7676

7777
self.checker = IPReputationChecker()
7878
self.checker.ipv4_reputation_query_tool.source_file = self.tempfile.name
@@ -83,22 +83,18 @@ def setUp(self) -> None:
8383
# Not needed in this scope :-)
8484
self.checker.do_syntax_check_first = False
8585

86-
return upstream_result
87-
8886
def tearDown(self) -> None:
8987
"""
9088
Destroys everything previously initiated for the tests.
9189
"""
9290

93-
upstream_result = super().tearDown()
91+
super().tearDown()
9492

9593
self.dns_query_tool_path.stop()
9694

9795
del self.dns_query_tool_path
9896
del self.mock_query_tool
9997

100-
return upstream_result
101-
10298
def test_query_status_positive_ipv4(self) -> None:
10399
"""
104100
Tests the method which let us query the status for the case that

tests/checker/reputation/test_url.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def setUp(self) -> None:
7272
Setups everything we need.
7373
"""
7474

75-
upstream_result = super().setUp()
75+
super().setUp()
7676

7777
self.checker = URLReputationChecker()
7878
self.checker.ipv4_reputation_query_tool.source_file = self.tempfile.name
@@ -83,22 +83,18 @@ def setUp(self) -> None:
8383
# Not needed in this scope :-)
8484
self.checker.do_syntax_check_first = False
8585

86-
return upstream_result
87-
8886
def tearDown(self) -> None:
8987
"""
9088
Destroys everything previously initiated for the tests.
9189
"""
9290

93-
upstream_result = super().tearDown()
91+
super().tearDown()
9492

9593
self.dns_query_tool_path.stop()
9694

9795
del self.dns_query_tool_path
9896
del self.mock_query_tool
9997

100-
return upstream_result
101-
10298
def test_query_status_positive_domain(self) -> None:
10399
"""
104100
Tests the method which let us query the status for the case that

0 commit comments

Comments
 (0)