本文整理汇总了Python中sentry.signals.event_processed.send函数的典型用法代码示例。如果您正苦于以下问题:Python send函数的具体用法?Python send怎么用?Python send使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了send函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_bulk_create
def test_bulk_create(self):
group = self.create_group(
project=self.project, platform='javascript', message='javascript error message'
)
event = self.create_full_event()
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
javascript = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="javascript"
)
assert javascript
environment_tracking = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="environment_tracking"
)
assert environment_tracking
release_tracking = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="release_tracking"
)
assert release_tracking
feature_complete = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="user_tracking"
)
assert feature_complete
示例2: test_event_processed
def test_event_processed(self):
project = self.create_project(first_event=timezone.now())
event = self.create_full_event()
event_processed.send(project=project, group=self.group, event=event, sender=type(project))
task = OrganizationOnboardingTask.objects.get(
organization=project.organization,
task=OnboardingTask.RELEASE_TRACKING,
status=OnboardingTaskStatus.COMPLETE,
)
assert task is not None
task = OrganizationOnboardingTask.objects.get(
organization=project.organization,
task=OnboardingTask.USER_CONTEXT,
status=OnboardingTaskStatus.COMPLETE,
)
assert task is not None
task = OrganizationOnboardingTask.objects.get(
organization=project.organization,
task=OnboardingTask.SOURCEMAPS,
status=OnboardingTaskStatus.COMPLETE,
)
assert task is not None
示例3: test_csp
def test_csp(self):
group = self.create_group(project=self.project, platform='csp', message='C# error message')
event = self.create_event()
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
csp = FeatureAdoption.objects.get_by_slug(organization=self.organization, slug="csp")
assert csp.complete
示例4: test_go
def test_go(self):
group = self.create_group(project=self.project, platform='go', message='go error message')
event = self.create_event()
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
go = FeatureAdoption.objects.get_by_slug(organization=self.organization, slug="go")
assert go.complete
示例5: test_node
def test_node(self):
group = self.create_group(
project=self.project, platform='node', message='node error message'
)
event = self.create_event()
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
node = FeatureAdoption.objects.get_by_slug(organization=self.organization, slug="node")
assert node.complete
示例6: test_python
def test_python(self):
group = self.create_group(
project=self.project, platform='python', message='python error message'
)
event = self.create_event()
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
python = FeatureAdoption.objects.get_by_slug(organization=self.organization, slug="python")
assert python.complete
示例7: test_javascript
def test_javascript(self):
group = self.create_group(
project=self.project, platform='javascript', message='javascript error message'
)
event = self.create_event()
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
js = FeatureAdoption.objects.get_by_slug(organization=self.organization, slug="javascript")
assert js.complete
示例8: test_objc
def test_objc(self):
group = self.create_group(
project=self.project, platform='objc', message='objc error message'
)
event = self.create_event()
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
objc = FeatureAdoption.objects.get_by_slug(organization=self.organization, slug="objc")
assert objc.complete
示例9: test_ruby
def test_ruby(self):
group = self.create_group(
project=self.project, platform='ruby', message='ruby error message'
)
event = self.create_event()
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
ruby = FeatureAdoption.objects.get_by_slug(organization=self.organization, slug="ruby")
assert ruby.complete
示例10: test_breadcrumbs
def test_breadcrumbs(self):
group = self.create_group(
project=self.project, platform='javascript', message='javascript error message'
)
event = self.create_full_event()
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
breadcrumbs = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="breadcrumbs"
)
assert breadcrumbs
示例11: test_environment_tracking
def test_environment_tracking(self):
group = self.create_group(
project=self.project, platform='javascript', message='javascript error message'
)
event = self.create_full_event()
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
environment_tracking = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="environment_tracking"
)
assert environment_tracking
示例12: test_custom_tags
def test_custom_tags(self):
group = self.create_group(
project=self.project, platform='javascript', message='javascript error message'
)
event = self.create_full_event()
event.data['tags'].append(('foo', 'bar'))
assert event.get_tag('foo') == 'bar'
event_processed.send(
project=self.project, group=group, event=event, sender=type(self.project)
)
custom_tags = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="custom_tags"
)
assert custom_tags
示例13: test_multiple_events
def test_multiple_events(self):
group = self.create_group(
project=self.project, platform='javascript', message='javascript error message'
)
simple_event = self.create_event()
first_event_received.send(project=self.project, group=group, sender=type(self.project))
event_processed.send(
project=self.project, group=group, event=simple_event, sender=type(self.project)
)
first_event = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="first_event"
)
assert first_event.complete
js = FeatureAdoption.objects.get_by_slug(organization=self.organization, slug="javascript")
assert js.complete
full_event = self.create_full_event()
event_processed.send(
project=self.project, group=group, event=full_event, sender=type(self.project)
)
release_tracking = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="release_tracking"
)
assert release_tracking
environment_tracking = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="environment_tracking"
)
assert environment_tracking
feature_complete = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="user_tracking"
)
assert feature_complete
source_maps = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="source_maps"
)
assert source_maps
breadcrumbs = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="breadcrumbs"
)
assert breadcrumbs
示例14: test_all_passed_feature_slugs_are_complete
def test_all_passed_feature_slugs_are_complete(self):
group1 = self.create_group(
project=self.project, platform='javascript', message='javascript error message'
)
event1 = self.create_full_event()
group2 = self.create_group(
project=self.project, platform='javascript', message='javascript error message'
)
event2 = self.create_full_event(event_id='b')
event_processed.send(
project=self.project, group=group1, event=event1, sender=type(self.project)
)
event_processed.send(
project=self.project, group=group2, event=event2, sender=type(self.project)
)
feature_complete = FeatureAdoption.objects.get_by_slug(
organization=self.organization, slug="environment_tracking"
)
assert feature_complete.complete
示例15: test_onboarding_complete
def test_onboarding_complete(self):
user = self.create_user(email='[email protected]')
project = self.create_project(first_event=timezone.now())
second_project = self.create_project(first_event=timezone.now())
second_group = self.create_group(project=second_project, platform='python', message='python error message')
event = self.create_full_event()
member = self.create_member(organization=self.organization, teams=[self.team], user=user)
event_processed.send(project=project, group=self.group, event=event, sender=type(project))
project_created.send(project=project, user=user, sender=type(project))
project_created.send(project=second_project, user=user, sender=type(second_project))
first_event_received.send(project=project, group=self.group, sender=type(project))
first_event_received.send(project=second_project, group=second_group, sender=type(second_project))
member_joined.send(member=member, sender=type(member))
plugin_enabled.send(plugin=IssueTrackingPlugin(), project=project, user=user, sender=type(IssueTrackingPlugin))
issue_tracker_used.send(plugin=IssueTrackingPlugin(), project=project, user=user, sender=type(IssueTrackingPlugin))
plugin_enabled.send(plugin=NotificationPlugin(), project=project, user=user, sender=type(NotificationPlugin))
assert OrganizationOption.objects.filter(organization=self.organization, key="onboarding:complete").count() == 1