-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into munir/refactor-trace-utils
- Loading branch information
Showing
58 changed files
with
1,564 additions
and
1,378 deletions.
There are no files selected for viewing
This file contains 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
Empty file.
This file contains 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
4 changes: 2 additions & 2 deletions
4
ddtrace/contrib/pytest/_benchmark_utils.py → ...ntrib/internal/pytest/_benchmark_utils.py
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
2 changes: 1 addition & 1 deletion
2
ddtrace/contrib/pytest/_types.py → ddtrace/contrib/internal/pytest/_types.py
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FRAMEWORK = "pytest" | ||
KIND = "test" | ||
|
||
|
||
# XFail Reason | ||
XFAIL_REASON = "pytest.xfail.reason" | ||
|
||
ITR_MIN_SUPPORTED_VERSION = (7, 2, 0) | ||
RETRIES_MIN_SUPPORTED_VERSION = (7, 0, 0) | ||
EFD_MIN_SUPPORTED_VERSION = RETRIES_MIN_SUPPORTED_VERSION | ||
ATR_MIN_SUPPORTED_VERSION = RETRIES_MIN_SUPPORTED_VERSION |
This file contains 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""pytest-ddtrace hooks. | ||
These hooks are used to provide extra data used by the Datadog CI Visibility plugin. | ||
For example: module, suite, and test names for a given item. | ||
Note that these names will affect th display and reporting of tests in the Datadog UI, as well as information stored | ||
the Intelligent Test Runner. Differing hook implementations may impact the behavior of Datadog CI Visibility products. | ||
""" | ||
|
||
import pytest | ||
|
||
|
||
@pytest.hookspec(firstresult=True) | ||
def pytest_ddtrace_get_item_module_name(item: pytest.Item) -> str: | ||
"""Returns the module name to use when reporting CI Visibility results, should be unique""" | ||
|
||
|
||
@pytest.hookspec(firstresult=True) | ||
def pytest_ddtrace_get_item_suite_name(item: pytest.Item) -> str: | ||
"""Returns the suite name to use when reporting CI Visibility result, should be unique""" | ||
|
||
|
||
@pytest.hookspec(firstresult=True) | ||
def pytest_ddtrace_get_item_test_name(item: pytest.Item) -> str: | ||
"""Returns the test name to use when reporting CI Visibility result, should be unique""" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Get version is imported from patch.py in _monkey.py | ||
def get_version(): | ||
# type: () -> str | ||
import pytest | ||
|
||
return pytest.__version__ |
Oops, something went wrong.