diff --git a/src/open_inwoner/api/search/tests/test_autocomplete_api.py b/src/open_inwoner/api/search/tests/test_autocomplete_api.py index 7b090be38f..d5182ff40e 100644 --- a/src/open_inwoner/api/search/tests/test_autocomplete_api.py +++ b/src/open_inwoner/api/search/tests/test_autocomplete_api.py @@ -2,6 +2,7 @@ this file contains tests for the RESTful API The logic of `autocomplete` is tested at `open_inwoner.search.tests` folder """ +from django.test import tag from django.urls import reverse_lazy from rest_framework import status @@ -11,6 +12,7 @@ from open_inwoner.search.tests.utils import ESMixin +@tag("elastic") class AutocompleteApiTests(ESMixin, APITestCase): url = reverse_lazy("api:search_autocomplete") diff --git a/src/open_inwoner/search/tests/test_search_products_boost.py b/src/open_inwoner/search/tests/test_search_products_boost.py index 5b6df1f516..e129d8e10b 100644 --- a/src/open_inwoner/search/tests/test_search_products_boost.py +++ b/src/open_inwoner/search/tests/test_search_products_boost.py @@ -1,4 +1,4 @@ -from django.test import TestCase +from django.test import TestCase, tag from open_inwoner.pdc.tests.factories import ProductFactory @@ -7,6 +7,7 @@ from .utils import ESMixin +@tag("elastic") class SearchBoostTests(ESMixin, TestCase): def setUp(self): super().setUp()