Skip to content

Commit acc9993

Browse files
committed
.
1 parent f431e15 commit acc9993

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

tests/test_client.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def capture_envelope(self, envelope):
5353
raise EnvelopeCapturedError(envelope)
5454

5555

56+
@pytest.mark.skip(reason="debugging")
5657
def test_transport_option(monkeypatch):
5758
if "SENTRY_DSN" in os.environ:
5859
monkeypatch.delenv("SENTRY_DSN")
@@ -68,6 +69,7 @@ def test_transport_option(monkeypatch):
6869
assert str(Client(transport=transport).dsn) == dsn
6970

7071

72+
@pytest.mark.skip(reason="debugging")
7173
@pytest.mark.parametrize(
7274
"testcase",
7375
[
@@ -300,6 +302,7 @@ def test_proxy(monkeypatch, testcase, http2):
300302
assert proxy_headers == testcase["arg_proxy_headers"]
301303

302304

305+
@pytest.mark.skip(reason="debugging")
303306
@pytest.mark.parametrize(
304307
"testcase",
305308
[
@@ -382,13 +385,15 @@ def test_socks_proxy(testcase, http2):
382385
)
383386

384387

388+
@pytest.mark.skip(reason="debugging")
385389
def test_simple_transport(sentry_init):
386390
events = []
387391
sentry_init(transport=events.append)
388392
capture_message("Hello World!")
389393
assert events[0]["message"] == "Hello World!"
390394

391395

396+
@pytest.mark.skip(reason="debugging")
392397
def test_ignore_errors(sentry_init, capture_events):
393398
sentry_init(ignore_errors=[ZeroDivisionError])
394399
events = capture_events()
@@ -410,6 +415,7 @@ def e(exc):
410415
assert events[0]["exception"]["values"][0]["type"] == "ValueError"
411416

412417

418+
@pytest.mark.skip(reason="debugging")
413419
def test_include_local_variables_enabled(sentry_init, capture_events):
414420
sentry_init(include_local_variables=True)
415421
events = capture_events()
@@ -426,6 +432,7 @@ def test_include_local_variables_enabled(sentry_init, capture_events):
426432
)
427433

428434

435+
@pytest.mark.skip(reason="debugging")
429436
def test_include_local_variables_disabled(sentry_init, capture_events):
430437
sentry_init(include_local_variables=False)
431438
events = capture_events()
@@ -442,6 +449,7 @@ def test_include_local_variables_disabled(sentry_init, capture_events):
442449
)
443450

444451

452+
@pytest.mark.skip(reason="debugging")
445453
def test_include_source_context_enabled(sentry_init, capture_events):
446454
sentry_init(include_source_context=True)
447455
events = capture_events()
@@ -458,6 +466,7 @@ def test_include_source_context_enabled(sentry_init, capture_events):
458466
assert "context_line" in frame
459467

460468

469+
@pytest.mark.skip(reason="debugging")
461470
def test_include_source_context_disabled(sentry_init, capture_events):
462471
sentry_init(include_source_context=False)
463472
events = capture_events()
@@ -474,6 +483,7 @@ def test_include_source_context_disabled(sentry_init, capture_events):
474483
assert "context_line" not in frame
475484

476485

486+
@pytest.mark.skip(reason="debugging")
477487
@pytest.mark.parametrize("integrations", [[], [ExecutingIntegration()]])
478488
def test_function_names(sentry_init, capture_events, integrations):
479489
sentry_init(integrations=integrations)
@@ -503,6 +513,7 @@ def bar():
503513
assert functions == ["foo", "bar"]
504514

505515

516+
@pytest.mark.skip(reason="debugging")
506517
def test_attach_stacktrace_enabled(sentry_init, capture_events):
507518
sentry_init(attach_stacktrace=True)
508519
events = capture_events()
@@ -522,6 +533,7 @@ def bar():
522533
assert functions[-2:] == ["foo", "bar"]
523534

524535

536+
@pytest.mark.skip(reason="debugging")
525537
def test_attach_stacktrace_enabled_no_locals(sentry_init, capture_events):
526538
sentry_init(attach_stacktrace=True, include_local_variables=False)
527539
events = capture_events()
@@ -540,6 +552,7 @@ def bar():
540552
assert local_vars[-2:] == [None, None]
541553

542554

555+
@pytest.mark.skip(reason="debugging")
543556
def test_attach_stacktrace_in_app(sentry_init, capture_events):
544557
sentry_init(attach_stacktrace=True, in_app_exclude=["_pytest"])
545558
events = capture_events()
@@ -554,6 +567,7 @@ def test_attach_stacktrace_in_app(sentry_init, capture_events):
554567
assert all(f["in_app"] is False for f in pytest_frames)
555568

556569

570+
@pytest.mark.skip(reason="debugging")
557571
def test_attach_stacktrace_disabled(sentry_init, capture_events):
558572
sentry_init(attach_stacktrace=False)
559573
events = capture_events()
@@ -563,6 +577,7 @@ def test_attach_stacktrace_disabled(sentry_init, capture_events):
563577
assert "threads" not in event
564578

565579

580+
@pytest.mark.skip(reason="debugging")
566581
def test_attach_stacktrace_transaction(sentry_init, capture_events):
567582
sentry_init(traces_sample_rate=1.0, attach_stacktrace=True)
568583
events = capture_events()
@@ -572,12 +587,14 @@ def test_attach_stacktrace_transaction(sentry_init, capture_events):
572587
assert "threads" not in event
573588

574589

590+
@pytest.mark.skip(reason="debugging")
575591
def test_capture_event_works(sentry_init):
576592
sentry_init(transport=_TestTransport())
577593
pytest.raises(EnvelopeCapturedError, lambda: capture_event({}))
578594
pytest.raises(EnvelopeCapturedError, lambda: capture_event({}))
579595

580596

597+
@pytest.mark.skip(reason="debugging")
581598
@pytest.mark.parametrize("num_messages", [10, 20])
582599
@pytest.mark.parametrize(
583600
"http2", [True, False] if sys.version_info >= (3, 8) else [False]
@@ -622,6 +639,7 @@ def capture_envelope(self, envelope):
622639
assert output.count(b"HI") == num_messages
623640

624641

642+
@pytest.mark.skip(reason="debugging")
625643
def test_configure_scope_available(
626644
sentry_init, request, monkeypatch, suppress_deprecation_warnings
627645
):
@@ -647,6 +665,7 @@ def callback(scope):
647665
assert calls[0] is Hub.current.scope
648666

649667

668+
@pytest.mark.skip(reason="debugging")
650669
@pytest.mark.tests_internal_exceptions
651670
def test_client_debug_option_enabled(sentry_init, caplog):
652671
sentry_init(debug=True)
@@ -655,6 +674,7 @@ def test_client_debug_option_enabled(sentry_init, caplog):
655674
assert "OK" in caplog.text
656675

657676

677+
@pytest.mark.skip(reason="debugging")
658678
@pytest.mark.tests_internal_exceptions
659679
@pytest.mark.parametrize("with_client", (True, False))
660680
def test_client_debug_option_disabled(with_client, sentry_init, caplog):
@@ -665,6 +685,7 @@ def test_client_debug_option_disabled(with_client, sentry_init, caplog):
665685
assert "OK" not in caplog.text
666686

667687

688+
@pytest.mark.skip(reason="debugging")
668689
@pytest.mark.skip(
669690
reason="New behavior in SDK 2.0: You have a scope before init and add data to it."
670691
)
@@ -686,6 +707,7 @@ def test_scope_initialized_before_client(sentry_init, capture_events):
686707
assert "tags" not in event
687708

688709

710+
@pytest.mark.skip(reason="debugging")
689711
def test_weird_chars(sentry_init, capture_events):
690712
sentry_init()
691713
events = capture_events()
@@ -694,6 +716,7 @@ def test_weird_chars(sentry_init, capture_events):
694716
assert json.loads(json.dumps(event)) == event
695717

696718

719+
@pytest.mark.skip(reason="debugging")
697720
def test_nan(sentry_init, capture_events):
698721
sentry_init()
699722
events = capture_events()
@@ -715,6 +738,7 @@ def test_nan(sentry_init, capture_events):
715738
assert event["tags"]["mynan"] == "nan"
716739

717740

741+
@pytest.mark.skip(reason="debugging")
718742
def test_cyclic_frame_vars(sentry_init, capture_events):
719743
sentry_init()
720744
events = capture_events()
@@ -732,6 +756,7 @@ def test_cyclic_frame_vars(sentry_init, capture_events):
732756
}
733757

734758

759+
@pytest.mark.skip(reason="debugging")
735760
def test_cyclic_data(sentry_init, capture_events):
736761
sentry_init()
737762
events = capture_events()
@@ -813,6 +838,7 @@ def inner():
813838
assert len(json.dumps(event)) < 10000
814839

815840

841+
@pytest.mark.skip(reason="debugging")
816842
def test_chained_exceptions(sentry_init, capture_events):
817843
sentry_init()
818844
events = capture_events()
@@ -836,6 +862,7 @@ def test_chained_exceptions(sentry_init, capture_events):
836862
assert e2["type"] == "ZeroDivisionError"
837863

838864

865+
@pytest.mark.skip(reason="debugging")
839866
@pytest.mark.tests_internal_exceptions
840867
def test_broken_mapping(sentry_init, capture_events):
841868
sentry_init()
@@ -867,6 +894,7 @@ def __repr__(self):
867894
)
868895

869896

897+
@pytest.mark.skip(reason="debugging")
870898
def test_mapping_sends_exception(sentry_init, capture_events):
871899
sentry_init()
872900
events = capture_events()
@@ -903,6 +931,7 @@ def __getitem__(self, ii):
903931
}
904932

905933

934+
@pytest.mark.skip(reason="debugging")
906935
def test_object_sends_exception(sentry_init, capture_events):
907936
sentry_init()
908937
events = capture_events()
@@ -929,6 +958,7 @@ def __repr__(self):
929958
)
930959

931960

961+
@pytest.mark.skip(reason="debugging")
932962
def test_errno_errors(sentry_init, capture_events):
933963
sentry_init()
934964
events = capture_events()
@@ -944,6 +974,7 @@ class FooError(Exception):
944974
assert exception["mechanism"]["meta"]["errno"]["number"] == 69
945975

946976

977+
@pytest.mark.skip(reason="debugging")
947978
@maximum_python_312
948979
def test_non_string_variables(sentry_init, capture_events):
949980
"""There is some extremely terrible code in the wild that
@@ -966,6 +997,7 @@ def test_non_string_variables(sentry_init, capture_events):
966997
assert frame["vars"]["42"] == "True"
967998

968999

1000+
@pytest.mark.skip(reason="debugging")
9691001
def test_dict_changed_during_iteration(sentry_init, capture_events):
9701002
"""
9711003
Some versions of Bottle modify the WSGI environment inside of this __repr__
@@ -1000,6 +1032,7 @@ def __repr__(self):
10001032
assert frame["vars"]["environ"] == {"a": "<This is me>"}
10011033

10021034

1035+
@pytest.mark.skip(reason="debugging")
10031036
def test_custom_repr_on_vars(sentry_init, capture_events):
10041037
class Foo:
10051038
pass
@@ -1033,6 +1066,7 @@ def custom_repr(value):
10331066
assert "Fail object" in my_vars["fail"]
10341067

10351068

1069+
@pytest.mark.skip(reason="debugging")
10361070
@pytest.mark.parametrize(
10371071
"dsn",
10381072
[
@@ -1053,6 +1087,7 @@ def test_init_string_types(dsn, sentry_init):
10531087
)
10541088

10551089

1090+
@pytest.mark.skip(reason="debugging")
10561091
@pytest.mark.parametrize(
10571092
"sdk_options, expected_breadcrumbs",
10581093
[({}, DEFAULT_MAX_BREADCRUMBS), ({"max_breadcrumbs": 50}, 50)],
@@ -1071,12 +1106,14 @@ def test_max_breadcrumbs_option(
10711106
assert len(events[0]["breadcrumbs"]["values"]) == expected_breadcrumbs
10721107

10731108

1109+
@pytest.mark.skip(reason="debugging")
10741110
def test_multiple_positional_args(sentry_init):
10751111
with pytest.raises(TypeError) as exinfo:
10761112
sentry_init(1, None)
10771113
assert "Only single positional argument is expected" in str(exinfo.value)
10781114

10791115

1116+
@pytest.mark.skip(reason="debugging")
10801117
@pytest.mark.parametrize(
10811118
"sdk_options, expected_data_length",
10821119
[
@@ -1098,6 +1135,7 @@ def test_max_value_length_option(
10981135
assert len(events[0]["message"]) == expected_data_length
10991136

11001137

1138+
@pytest.mark.skip(reason="debugging")
11011139
@pytest.mark.parametrize(
11021140
"client_option,env_var_value,debug_output_expected",
11031141
[
@@ -1156,6 +1194,7 @@ def test_debug_option(
11561194
assert "something is wrong" not in caplog.text
11571195

11581196

1197+
@pytest.mark.skip(reason="debugging")
11591198
@pytest.mark.parametrize(
11601199
"client_option,env_var_value,spotlight_url_expected",
11611200
[
@@ -1226,6 +1265,7 @@ def raise_exception(self):
12261265
raise self.exception_to_raise()
12271266

12281267

1268+
@pytest.mark.skip(reason="debugging")
12291269
@mock.patch("sentry_sdk.client.random.random", return_value=0.618)
12301270
@pytest.mark.parametrize(
12311271
"test_config",
@@ -1308,6 +1348,7 @@ def test_error_sampler(_, sentry_init, capture_events, test_config):
13081348
assert len(test_config.sampler_function_mock.call_args[0]) == 2
13091349

13101350

1351+
@pytest.mark.skip(reason="debugging")
13111352
@pytest.mark.parametrize(
13121353
"opt,missing_flags",
13131354
[
@@ -1445,6 +1486,7 @@ def run(self, sentry_init, capture_record_lost_event_calls):
14451486
assert Counter(record_lost_event_calls) == self.expected_record_lost_event_calls
14461487

14471488

1489+
@pytest.mark.skip(reason="debugging")
14481490
@pytest.mark.parametrize(
14491491
"test_config",
14501492
(
@@ -1505,6 +1547,7 @@ def test_dropped_transaction(sentry_init, capture_record_lost_event_calls, test_
15051547
test_config.run(sentry_init, capture_record_lost_event_calls)
15061548

15071549

1550+
@pytest.mark.skip(reason="debugging")
15081551
@pytest.mark.parametrize("enable_tracing", [True, False])
15091552
def test_enable_tracing_deprecated(sentry_init, enable_tracing):
15101553
with pytest.warns(DeprecationWarning):
@@ -1544,6 +1587,7 @@ def clear_env_var(name):
15441587
del os.environ[name]
15451588

15461589

1590+
@pytest.mark.skip(reason="debugging")
15471591
@pytest.mark.parametrize(
15481592
("env_value", "arg_value", "expected_value"),
15491593
[

0 commit comments

Comments
 (0)