Skip to content

Commit

Permalink
move sync_es method in setUp for test class, re #10787
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Jul 3, 2024
1 parent 76e00ad commit 33fe4e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/search/search_export_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@


class SearchExportTests(ArchesTestCase):
@classmethod
def setUp(cls):
super().setUp(cls)
se = SearchEngineFactory().create()
sync_es(se)

@classmethod
def setUpTestData(cls):
se = SearchEngineFactory().create()
Expand Down Expand Up @@ -87,7 +93,6 @@ def setUpTestData(cls):
)
cultural_period_tile.save(index=False)
cultural_period_tile.index()
sync_es(se)
# TODO: create geospatial test data

def test_search_export_no_request(self):
Expand Down

0 comments on commit 33fe4e9

Please sign in to comment.