Skip to content

Commit

Permalink
Merge pull request #2 from bluPhy/main
Browse files Browse the repository at this point in the history
Fixing typos
  • Loading branch information
bumblebee211196 authored Jul 5, 2023
2 parents b983f13 + 966aeae commit 48ba649
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion common/commands_utility_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_lower_or_none_none() -> None:


def test_space_separated_str() -> None:
"""Test converting of camel case sentence to space seprated first letter capital.
"""Test converting of camel case sentence to space separated first letter capital.
"""
assert commands_utility.space_separated_str('dummyTest') == 'Dummy test'

Expand Down
4 changes: 2 additions & 2 deletions feeds/feed_schema_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_detailed_schema(self, user_source_type: AnyStr,
Returns:
dataclass: Consists of -
1. Display nane of Source type
1. Display name of Source type
2. Schema of Log type
3. Error message.
"""
Expand Down Expand Up @@ -254,7 +254,7 @@ def process_namespace_input(self, flattened_response: Dict[str, Any]) -> None:
self.pre_body[schema.KEY_DETAILS_NAMESPACE] = namespace

def process_labels_input(self, flattened_response: Dict[str, Any]) -> None:
"""Prompt input for lables field.
"""Prompt input for labels field.
Args:
flattened_response (Dict): Flattened response of existing feed.
Expand Down
2 changes: 1 addition & 1 deletion feeds/feed_utility_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ def test_get_feed_display_name() -> None:


def test_get_feed_display_name_none() -> None:
"""Test feed display name if not exist in feed dictonary."""
"""Test feed display name if not exist in feed dictionary."""
assert not feed_utility.get_feed_display_name({})
6 changes: 3 additions & 3 deletions forwarders/schema_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def process_input_detailed_schema(self,
backup_request_body (Any): Request body of existing forwarder or
collector.
each_field_mask_path (str): String containing field path from parent field
seperated by ".".
separated by ".".
"""
for each in detailed_schema:

Expand Down Expand Up @@ -393,7 +393,7 @@ def process_each_field_type(self, each: Dict[str, Any], request_body: Any,
request_body (Any): API request body.
existing_value (Any): Existing value of feilds.
each_field_mask_path (str): String containing field path from parent field
seperated by ".".
separated by ".".
"""
# Processing user input for primitive types.
if each.get(schema.KEY_FIELD_TYPE) in [
Expand Down Expand Up @@ -527,7 +527,7 @@ def populate_repeated_values(self, each_field_schema, request_body,
existing_value: Existing value of feilds. {"description": "sample",
"regexp": ".*"}.
each_field_mask_path (str): String containing field path from parent field
seperated by ".".
separated by ".".
"""
each_non_primitive_dict = {}
for each in each_field_schema.get(
Expand Down
4 changes: 2 additions & 2 deletions forwarders/schema_utility_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def test_process_input_detailed_schema_non_primitive(
========================================
========================================
======== Forwarder Cofiguration ========
======= Forwarder Configuration ========
========================================""" in output


Expand Down Expand Up @@ -390,7 +390,7 @@ def test_process_input_detailed_schema_repeated_message_fields(
Args:
confirm_patch: Mock object for click confirm.
input_patch: Mock object for click prompt.
repeated_message_fields_schema: (Fixture) Repeated fileds type schema.
repeated_message_fields_schema: (Fixture) Repeated fields type schema.
"""
schema_object = schema_utility.Schema(schema.KEY_COLLECTOR_SCHEMA, {})
confirm_patch.side_effect = [True, False]
Expand Down
2 changes: 1 addition & 1 deletion forwarders/tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def non_primitive_schema() -> Any:
"fieldPath":
"config",
"displayName":
"Forwarder Cofiguration",
"Forwarder Configuration",
"description":
"Forwarder configuration settings",
"type":
Expand Down

0 comments on commit 48ba649

Please sign in to comment.