Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Oct 3, 2024
1 parent 8b7deaa commit 382603b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 27 deletions.
30 changes: 15 additions & 15 deletions examples/library/Log.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
"""Logging library for Robot Framework.
Copyright (c) 2021 http://reportportal.io .
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License
"""
"""Logging library for Robot Framework."""

# Copyright 2024 EPAM Systems
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os

Expand Down
18 changes: 6 additions & 12 deletions examples/library/TestCaseId.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Test Case ID library for Robot Framework."""
# Copyright 2024 EPAM Systems
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -11,25 +12,18 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Optional

from robot.libraries.BuiltIn import BuiltIn


def case_id(test_case_id_pattern: Optional[str]) -> None:
"""
Set test case ID based on suite metadata.
:param test_case_id_pattern: Test Case ID pattern
"""
built_in = BuiltIn()
if not test_case_id_pattern:
return
Expand Down

0 comments on commit 382603b

Please sign in to comment.