File tree Expand file tree Collapse file tree
elasticsearch_metrics/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030)
3131
3232
33- def _es8_client (backend_name : str = "my_elastic8_events" ) -> elasticsearch8 .Elasticsearch :
33+ def _es8_client (
34+ backend_name : str = "my_elastic8_events" ,
35+ ) -> elasticsearch8 .Elasticsearch :
3436 _backend = djelme_registry .get_backend (backend_name )
3537 assert isinstance (_backend , djelme .DjelmeElastic8Backend )
3638 return _backend .elastic8_client
@@ -116,7 +118,7 @@ def test_get_index_template_default_template_name(self):
116118 def test_get_index_template_uses_app_label_in_class_meta (self ):
117119 class MyRecord (djelme .TimeseriesRecord ):
118120 class Index :
119- using = ' my_elastic8_events'
121+ using = " my_elastic8_events"
120122
121123 class Meta :
122124 app_label = "myapp"
@@ -139,7 +141,7 @@ class MyBaseRecord(djelme.TimeseriesRecord):
139141
140142 class Index :
141143 settings = {"number_of_shards" : 2 }
142- using = ' my_elastic8_events'
144+ using = " my_elastic8_events"
143145
144146 class Meta :
145147 abstract = True
@@ -155,7 +157,7 @@ class Meta:
155157 def test_source_may_be_enabled (self ):
156158 class MyRecord (djelme .TimeseriesRecord ):
157159 class Index :
158- using = ' my_elastic8_events'
160+ using = " my_elastic8_events"
159161
160162 class Meta :
161163 app_label = "dummy8app"
You can’t perform that action at this time.
0 commit comments