|
@@ -7,7 +7,6 @@ from django.db import router, transaction
|
|
|
|
|
|
from sentry.db.postgres.transactions import in_test_hide_transaction_boundary
|
|
|
from sentry.models.options.project_option import ProjectOption
|
|
|
-from sentry.models.project import Project
|
|
|
from sentry.models.projectkey import ProjectKey, ProjectKeyStatus
|
|
|
from sentry.relay.projectconfig_cache.redis import RedisProjectConfigCache
|
|
|
from sentry.relay.projectconfig_debounce_cache.redis import RedisProjectConfigDebounceCache
|
|
@@ -28,15 +27,6 @@ def _cache_keys_for_project(project):
|
|
|
yield key.public_key
|
|
|
|
|
|
|
|
|
-def _cache_keys_for_org(org):
|
|
|
- # The `ProjectKey` model doesn't have any attribute we can use to filter by
|
|
|
- # org, and the `Project` model doesn't have a project key exposed. So using
|
|
|
- # the org we fetch the project, and then the project key.
|
|
|
- for proj in Project.objects.filter(organization_id=org.id):
|
|
|
- for key in ProjectKey.objects.filter(project_id=proj.id):
|
|
|
- yield key.public_key
|
|
|
-
|
|
|
-
|
|
|
@pytest.fixture(autouse=True)
|
|
|
def disable_auto_on_commit():
|
|
|
simulated_transaction_watermarks.state["default"] = -1
|