diff --git a/tests/client/test_clinet_snapshots.py b/tests/client/test_clinet_snapshots.py new file mode 100644 index 00000000..8de73c7e --- /dev/null +++ b/tests/client/test_clinet_snapshots.py @@ -0,0 +1,11 @@ +# pylint: disable=invalid-name + + +def test_snapshot_creation(client, index_with_documents): + """Tests the creation of a Meilisearch snapshot.""" + index_with_documents("indexUID-snapshot-creation") + snapshot= client.create_snapshot() + client.wait_for_task(snapshot.task_uid) + snapshot_status = client.get_task(snapshot.task_uid) + assert snapshot_status.status == "succeeded" + assert snapshot_status.type == "snapshotCreation" \ No newline at end of file