Skip to content

Commit 7671303

Browse files
committed
PYTHON-4834 repr for SearchIndexModel, IndexModel
- Review fixes
1 parent d83a100 commit 7671303

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test_operations.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2009-present MongoDB, Inc.
1+
# Copyright 2009-2024 MongoDB, Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -70,6 +70,10 @@ class TestSearchIndexModel(TestOperationsBase):
7070

7171
def test_repr(self):
7272
self.assertRepr(SearchIndexModel({"hello": "hello"}, key=1))
73+
self.assertEqual(
74+
repr(SearchIndexModel({"hello": "hello"}, key=1)),
75+
"SearchIndexModel(definition={'hello': 'hello'}, key=1)",
76+
)
7377

7478

7579
if __name__ == "__main__":

0 commit comments

Comments
 (0)