File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
tests/sentry/dynamic_sampling Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 22
33from sentry .dynamic_sampling .prioritise_projects import fetch_projects_with_total_volumes
44from sentry .testutils .factories import Factories
5+ from sentry .utils .snuba import SnubaError
56
67
78@pytest .mark .django_db
89def test_prioritize_projects ():
910 organization = Factories .create_organization (name = "test-org" )
1011 Factories .create_project (organization = organization )
11- fetch_projects_with_total_volumes ()
12+ # TODO (andrii): remove it when snuba PR is ready
13+ # https://github.com/getsentry/snuba/pull/3708
14+ with pytest .raises (SnubaError ):
15+ fetch_projects_with_total_volumes ()
Original file line number Diff line number Diff line change 11import pytest
22
33from sentry .dynamic_sampling .tasks import fetch_projects_with_total_volumes
4+ from sentry .utils .snuba import SnubaError
45
56
67@pytest .mark .django_db
@@ -13,4 +14,7 @@ def test_simple(default_project):
1314 ]
1415 assert 1 == 1
1516 _ = test_data
16- fetch_projects_with_total_volumes ()
17+ # TODO (andrii): remove it when snuba PR is ready
18+ # https://github.com/getsentry/snuba/pull/3708
19+ with pytest .raises (SnubaError ):
20+ fetch_projects_with_total_volumes ()
You can’t perform that action at this time.
0 commit comments