Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/operations_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

from pathlib import Path

import pytest
import requests_mock

Expand Down Expand Up @@ -51,11 +53,11 @@ def test_cache_clear(actual_operations: Operations) -> None:
assert response["success"]


def test_snapshot(actual_operations: Operations) -> None:
def test_snapshot(actual_operations: Operations, tmp_path: Path) -> None:
"""Test that the Operations object can perform the snapshot operation."""
response = actual_operations.perform(
"snapshot",
{"snapshot_path": "/tmp"}, # noqa: S108
{"snapshot_path": str(tmp_path)},
)

assert response["success"]
Expand Down