Skip to content

Commit

Permalink
ignore test before snuba PR is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Soldatenko committed Feb 7, 2023
1 parent 015522e commit 955c3bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/sentry/dynamic_sampling/test_prioritise_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

from sentry.dynamic_sampling.prioritise_projects import fetch_projects_with_total_volumes
from sentry.testutils.factories import Factories
from sentry.utils.snuba import SnubaError


@pytest.mark.django_db
def test_prioritize_projects():
organization = Factories.create_organization(name="test-org")
Factories.create_project(organization=organization)
fetch_projects_with_total_volumes()
# TODO (andrii): remove it when snuba PR is ready
# https://github.com/getsentry/snuba/pull/3708
with pytest.raises(SnubaError):
fetch_projects_with_total_volumes()
6 changes: 5 additions & 1 deletion tests/sentry/dynamic_sampling/test_tasks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest

from sentry.dynamic_sampling.tasks import fetch_projects_with_total_volumes
from sentry.utils.snuba import SnubaError


@pytest.mark.django_db
Expand All @@ -13,4 +14,7 @@ def test_simple(default_project):
]
assert 1 == 1
_ = test_data
fetch_projects_with_total_volumes()
# TODO (andrii): remove it when snuba PR is ready
# https://github.com/getsentry/snuba/pull/3708
with pytest.raises(SnubaError):
fetch_projects_with_total_volumes()

0 comments on commit 955c3bf

Please sign in to comment.