Skip to content

Commit 3bd7ae9

Browse files
Fix deprecation warning message for ElasticsearchContainer (#171)
Co-authored-by: Till Hoffmann <[email protected]>
1 parent e3fcead commit 3bd7ae9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

testcontainers/elasticsearch.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,7 @@ def start(self):
5252
return self
5353

5454

55-
ElasticsearchContainer = deprecated(details='Use `ElasticSearchContainer` with a capital S instead '
56-
'of `ElasticsearchContainer`.')(ElasticSearchContainer)
55+
@deprecated(details='Use `ElasticSearchContainer` with a capital S instead '
56+
'of `ElasticsearchContainer`.')
57+
class ElasticsearchContainer(ElasticSearchContainer):
58+
pass

0 commit comments

Comments
 (0)