We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b009cf commit 031ea2bCopy full SHA for 031ea2b
tests/document/test_timeseries_collection.py
@@ -133,14 +133,14 @@ class SensorDataWithIndex(Document):
133
134
collection = SensorDataWithIndex._get_collection()
135
136
- # Create another index
137
- collection.create_index([("timestamp", 1)])
138
- collection.create_index([("temperature", 1)])
139
-
140
indexes = collection.index_information()
+
+ assert (
+ "timestamp_index" in indexes
+ ), "Index on 'timestamp' field was not created"
141
assert (
142
- "temperature_location_index" in indexes
143
- ), "Index on 'location' field was not created"
+ "temperature_index" in indexes
+ ), "Index on 'temperature' field was not created"
144
145
@requires_mongodb_gte_50
146
def test_timeseries_data_insertion_order(self):
0 commit comments