Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ filterwarnings = [

"ignore::django.utils.deprecation.RemovedInDjango30Warning",

# It would be really nice not to ignore these but unfortunately a lot of tests
# are failing locally in certain environments due to temporary files not being
# closed all over the place
"ignore::ResourceWarning",

# DeprecationWarnings from Python 3.6's sre_parse are just so painful,
# and I haven't found a way to ignore it specifically from a module.
# This one in particular is from the "cookies" packages as depended
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ freezegun==1.1.0
honcho>=1.0.0,<1.1.0
mypy>=0.800,<0.900
openapi-core==0.14.2
pytest==6.1.0
pytest==6.2.0
pytest-cov==2.11.1
pytest-django==3.10.0
pytest-sentry==0.1.9
Expand Down
4 changes: 2 additions & 2 deletions tests/sentry/analytics/test_event.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import unittest
from datetime import datetime
from unittest.mock import patch

import pytest
import pytz

from sentry.analytics import Attribute, Event, Map
from sentry.testutils import TestCase


class ExampleEvent(Event):
Expand All @@ -22,7 +22,7 @@ class DummyType:
key = "value"


class EventTest(TestCase):
class EventTest(unittest.TestCase):
@patch("sentry.analytics.event.uuid1")
def test_simple(self, mock_uuid1):
mock_uuid1.return_value = self.get_mock_uuid()
Expand Down
7 changes: 4 additions & 3 deletions tests/sentry/test_stacktraces.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import unittest

import pytest

from sentry.grouping.api import get_default_grouping_config_dict, load_grouping_config
Expand All @@ -6,10 +8,9 @@
get_crash_frame_from_event_data,
normalize_stacktraces_for_grouping,
)
from sentry.testutils import TestCase


class FindStacktracesTest(TestCase):
class FindStacktracesTest(unittest.TestCase):
def test_stacktraces_basics(self):
data = {
"message": "hello",
Expand Down Expand Up @@ -157,7 +158,7 @@ def test_find_stacktraces_skip_none(self):
assert len(infos[0].stacktrace["frames"]) == 3


class NormalizeInApptest(TestCase):
class NormalizeInApptest(unittest.TestCase):
def test_normalize_with_system_frames(self):
data = {
"stacktrace": {
Expand Down