Skip to content

Commit

Permalink
Fixed missing parameter error message
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Oct 31, 2023
1 parent cbac91c commit 11764ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyxform/validators/pyxform/android_package_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def validate_android_package_name(name: str) -> Optional[str]:
prefix = "Parameter 'app' has an invalid Android package name - "

if not name.strip():
return f"{prefix}package name is missing."
return f"{prefix}the package name is missing."

if "." not in name:
return f"{prefix}the package name must have at least one '.' separator."
Expand Down
2 changes: 1 addition & 1 deletion tests/test_image_app_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_throwing_error_when_blank_android_package_name_is_used_with_supported_a
name="data",
errored=True,
error__contains=[
"[row : 2] Parameter 'app' has an invalid Android package name - package name is missing."
"[row : 2] Parameter 'app' has an invalid Android package name - the package name is missing."
],
md=md.format(parameter=parameter, appearance=appearance),
xml__xpath_match=[
Expand Down

0 comments on commit 11764ed

Please sign in to comment.