Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #57

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions tests/virus_total_agent_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def testVirusTotalAgent_whenVirusTotalApiReturnsValidResponse_noExceptionRaised(
virustotal_agent: virus_total_agent.VirusTotalAgent,
message: msg.Message,
) -> None:
"""Unittest for the lifecyle of the virustotal agent :
"""Unittest for the lifecycle of the virustotal agent :
Sends a dummy malicious file through the Virus Total public API,
receives a valid response, assign a risk rating, creates a technical detail
and finally emits a message of type v3.report.vulnerability with the details above.
Expand Down Expand Up @@ -183,7 +183,7 @@ def testVirusTotalAgent_whenVirusTotalApiReturnsInvalidResponse_agentShouldNotCr
virustotal_agent: virus_total_agent.VirusTotalAgent,
message: msg.Message,
) -> None:
"""Unittest for the lifecyle of the virustotal agent :
"""Unittest for the lifecycle of the virustotal agent :
Case where the Virus Total public API response is invalid.
"""
mocker.patch("time.sleep")
Expand Down Expand Up @@ -214,7 +214,7 @@ def testVirusTotalAgent_whenLinkReceived_virusTotalApiReturnsValidResponse(
virustotal_agent: virus_total_agent.VirusTotalAgent,
url_message: msg.Message,
) -> None:
"""Unittest for the lifecyle of the virustotal agent :
"""Unittest for the lifecycle of the virustotal agent :
Sends a dummy malicious url through the Virus Total public API,
receives a valid response, assign a risk rating, creates a technical detail
and finally emits a message of type v3.report.vulnerability with the details above.
Expand Down Expand Up @@ -254,7 +254,7 @@ def testVirusTotalAgent_whenDomainReceived_virusTotalApiReturnsValidResponse(
virustotal_agent: virus_total_agent.VirusTotalAgent,
create_domain_message: msg.Message,
) -> None:
"""Unittest for the lifecyle of the virustotal agent :
"""Unittest for the lifecycle of the virustotal agent :
Sends a dummy malicious domain through the Virus Total public API,
receives a valid response, assign a risk rating, creates a technical detail
and finally emits a message of type v3.report.vulnerability with the details above.
Expand Down Expand Up @@ -289,7 +289,7 @@ def testVirusTotalAgent_whenApisReceived_virusTotalApiReturnsValidResponse(
virustotal_agent: virus_total_agent.VirusTotalAgent,
create_network_range_message: msg.Message,
) -> None:
"""Unittest for the lifecyle of the virustotal agent :
"""Unittest for the lifecycle of the virustotal agent :
Sends a dummy malicious IP range through the Virus Total public API,
receives a valid response, assign a risk rating, creates a technical detail
and finally emits a message of type v3.report.vulnerability with the details above.
Expand Down Expand Up @@ -374,7 +374,7 @@ def testVirusTotalAgent_whenVirusTotalReachesApiRateLimit_returnNone(
virustotal_agent: virus_total_agent.VirusTotalAgent,
message: msg.Message,
) -> None:
"""Unit test for the lifecyle of the virustotal agent :
"""Unit test for the lifecycle of the virustotal agent :
Case where the Virus Total public API reached the rate limit.
"""

Expand All @@ -393,7 +393,7 @@ def testVirusTotalAgent_whenWhiteListTypesAreNotProvided_shouldNotCrash(
virustotal_agent: virus_total_agent.VirusTotalAgent,
message: msg.Message,
) -> None:
"""Unit test for the lifecyle of the virustotal agent:
"""Unit test for the lifecycle of the virustotal agent:
Case when the whitelist_types arg not provided agent shouldn't crash
"""
mocker.patch("time.sleep")
Expand Down
Loading