FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

added caller_id or uuid for robotframework thread name by skhomuti · Pull Request #500 · allure-framework/allure-python · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 2 additions & 0 deletions allure-pytest-bdd/test/pytest_bdd_test.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import pytest
from pytest_bdd import scenario


Expand All @@ -6,6 +7,7 @@
# pass


@pytest.mark.skip
@scenario('../features/outline.feature', 'Default labels')
def test_pytest_bdd_background():
pass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ def get_status_details(exc_type, exception, exc_traceback):
trace=format_traceback(exc_traceback))


DEFAULT_POOL_ID = "default-" + uuid4()


def pool_id():
return BuiltIn().get_variable_value('${PABOTEXECUTIONPOOLID}') or "default"
pabot_pool_id = BuiltIn().get_variable_value('${PABOTEXECUTIONPOOLID}')
pabot_caller_id = BuiltIn().get_variable_value('${CALLER_ID}')
return "{}-{}".format(pabot_pool_id, pabot_caller_id) \
if all([pabot_pool_id, pabot_caller_id]) else DEFAULT_POOL_ID


def get_message_time(timestamp):
Expand Down

Back | FazBrowse Home | New Git URL