python-sentry-sdk/0002-tests.test_new_scopes_compat_event-compatibility.patch
Roman Inflianskas d8aca4e97c
Update to v2.0.1
2024-05-02 10:52:10 +03:00

69 lines
2.6 KiB
Diff

From c69beed27050978fa1a4af820ae84c8c96a20877 Mon Sep 17 00:00:00 2001
From: Roman Inflianskas <rominf@pm.me>
Date: Sat, 27 Apr 2024 12:29:04 +0300
Subject: [PATCH] tests.test_new_scopes_compat_event compatibility
---
tests/test_new_scopes_compat_event.py | 28 +++++----------------------
1 file changed, 5 insertions(+), 23 deletions(-)
diff --git a/tests/test_new_scopes_compat_event.py b/tests/test_new_scopes_compat_event.py
index 034beb50..a43ace11 100644
--- a/tests/test_new_scopes_compat_event.py
+++ b/tests/test_new_scopes_compat_event.py
@@ -36,7 +36,7 @@ def expected_error():
"abs_path": mock.ANY,
"function": "_faulty_function",
"module": "tests.test_new_scopes_compat_event",
- "lineno": 240,
+ "lineno": 222,
"pre_context": [
" return create_expected_transaction_event",
"",
@@ -114,19 +114,10 @@ def expected_error():
"environment": "checking-compatibility-with-sdk1",
"server_name": mock.ANY,
"sdk": {
- "name": "sentry.python",
+ "name": mock.ANY,
"version": mock.ANY,
"packages": [{"name": "pypi:sentry-sdk", "version": mock.ANY}],
- "integrations": [
- "argv",
- "atexit",
- "dedupe",
- "excepthook",
- "logging",
- "modules",
- "stdlib",
- "threading",
- ],
+ "integrations": mock.ANY,
},
"platform": "python",
"_meta": {
@@ -206,19 +197,10 @@ def expected_transaction():
"environment": "checking-compatibility-with-sdk1",
"server_name": mock.ANY,
"sdk": {
- "name": "sentry.python",
+ "name": mock.ANY,
"version": mock.ANY,
"packages": [{"name": "pypi:sentry-sdk", "version": mock.ANY}],
- "integrations": [
- "argv",
- "atexit",
- "dedupe",
- "excepthook",
- "logging",
- "modules",
- "stdlib",
- "threading",
- ],
+ "integrations": mock.ANY,
},
"platform": "python",
"_meta": {
--
2.44.0