Skip to content

Commit

Permalink
Linter fix. Updated messages in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
artanokhov committed Sep 11, 2024
1 parent 988d83c commit 3dd5907
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions utils/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ def fail_if_product_version_not_supported(product_version: str, parser: DockerCI
parser.error("Product version is not specified.")
elif product_version < "2022.1":
parser.error(
f"This version of the DockerHub CI framework does not support OpenVINO releases earlier than "
"2022.1.0. Current detected product version '{product_version}'. Please use previous versions "
"This version of the DockerHub CI framework does not support OpenVINO releases earlier than "
f"2022.1.0. Current detected product version {product_version}. Please use previous versions "
"of the DockerHub CI."
)

Expand Down Expand Up @@ -586,7 +586,7 @@ def parse_args(name: str, description: str): # noqa
)

if args.package_url and not args.build_id:
logger.info(f"Parsing product version in the package_url...")
logger.info(f"Parsing product version in the package_url {args.package_url}...")
dev_version = re.search(r"_(\d{4}\.(?:\d\.){2,3}dev\d{8})_", args.package_url)
if dev_version:
# save product version and build version as YYYY.U.V.devYYYYMMDD
Expand Down
4 changes: 2 additions & 2 deletions utils/tests/test_arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def test_arg_parser_success(mock_exists, mock_parser, args, res):
'distribution': 'dev',
'test_expression': 'cpu',
},
'Options --tags and --distribution are mandatory. Image operation system is "ubuntu18" by default.',
"Options --tags and --distribution are mandatory. Image operation system is 'ubuntu18' by default.",
id='Test without --tags',
),
pytest.param(
Expand All @@ -403,7 +403,7 @@ def test_arg_parser_success(mock_exists, mock_parser, args, res):
'test_expression': 'cpu',
'tags': ['test:latest'],
},
'Options --tags and --distribution are mandatory. Image operation system is "ubuntu18" by default.',
"Options --tags and --distribution are mandatory. Image operation system is 'ubuntu18' by default.",
id='Test without --distribution',
),
pytest.param(
Expand Down

0 comments on commit 3dd5907

Please sign in to comment.