Skip to content

Commit

Permalink
Work around missing indexes error in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Oct 25, 2024
1 parent df96ef0 commit 37125e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions st2api/tests/unit/controllers/v1/test_triggertypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import six

from st2api.controllers.v1.triggers import TriggerTypeController
from st2common.models.db.trigger import TriggerTypeDB

from st2tests.api import FunctionalTest
from st2tests.api import APIControllerWithIncludeAndExcludeFilterTestCase
Expand Down Expand Up @@ -57,6 +58,9 @@ class TriggerTypeControllerTestCase(
include_attribute_field_name = "payload_schema"
exclude_attribute_field_name = "parameters_schema"

ensure_indexes = True
ensure_indexes_models = [TriggerTypeDB]

@classmethod
def setUpClass(cls):
# super's setUpClass does the following:
Expand Down

0 comments on commit 37125e7

Please sign in to comment.