Skip to content

Commit

Permalink
style(#3344): Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Facundo Dalmau <[email protected]>
  • Loading branch information
nico-stefani and fdalmaup authored Feb 4, 2023
1 parent b1a3c07 commit fc21ff7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_data_sample(self) -> str:
"""Return a sample of data according to the cloudtrail format.
Returns:
ste: Syntetic data.
str: Syntetic data.
"""
return json.dumps({
'Records': [
Expand Down
2 changes: 1 addition & 1 deletion deps/wazuh_testing/wazuh_testing/tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get_host_name():

def validate_interval_format(interval):
"""Validate that the interval passed has the format in which the last digit is a letter from those passed and
the other characters are between 0-9"""
the other characters are between 0-9."""
if interval == '':
return False
if interval[-1] not in ['s', 'm', 'h', 'd', 'w', 'y'] or not isinstance(int(interval[0:-1]), numbers.Number):
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_aws/test_discard_regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def test_discard_regex(
timeout=T_20,
callback=event_monitor.callback_detect_event_processed_or_skipped(pattern),
error_message=(
'The AWS module did not show correct message about discard regex or ',
'did not process the expected amout of logs'
'The AWS module did not show the correct message about discard regex or ',
'did not process the expected amount of logs'
),
accum_results=found_logs + skipped_logs
).result()
Expand Down

0 comments on commit fc21ff7

Please sign in to comment.