Beispiel #1
0
 def test_stacktrace_wins_over_http(self, http_comp_hash, stack_comp_hash):
     # this was a regression, and a very important one
     http_comp_hash.return_value = ['baz']
     stack_comp_hash.return_value = ['foo', 'bar']
     event = Event(
         data={
             'sentry.interfaces.Stacktrace': {
                 'frames': [{
                     'lineno': 1,
                     'filename': 'foo.py',
                 }],
             },
             'sentry.interfaces.Http': {
                 'url': 'http://example.com'
             },
         },
         message='Foo bar',
     )
     checksum = get_checksum_from_event(event)
     stack_comp_hash.assert_called_once_with(interfaces=event.interfaces)
     assert not http_comp_hash.called
     assert checksum == '3858f62230ac3c915f300c664312c63f'
Beispiel #2
0
 def test_stacktrace_wins_over_http(self, http_comp_hash, stack_comp_hash):
     # this was a regression, and a very important one
     http_comp_hash.return_value = ['baz']
     stack_comp_hash.return_value = ['foo', 'bar']
     event = Event(
         data={
             'sentry.interfaces.Stacktrace': {
                 'frames': [{
                     'lineno': 1,
                     'filename': 'foo.py',
                 }],
             },
             'sentry.interfaces.Http': {
                 'url': 'http://example.com'
             },
         },
         message='Foo bar',
     )
     checksum = get_checksum_from_event(event)
     stack_comp_hash.assert_called_once_with(interfaces=event.interfaces)
     assert not http_comp_hash.called
     assert checksum == '3858f62230ac3c915f300c664312c63f'