ArchiveBox/archivebox/tests/test_api_v1_machine_machines.py
2026-06-02 02:25:52 -07:00

15 lines
348 B
Python

import pytest
from archivebox.machine.models import Machine
pytestmark = pytest.mark.django_db(transaction=True)
def test_basic_success_case_request(client, tmp_path, api_headers):
Machine.current(refresh=True)
response = client.get("/api/v1/machine/machines", **api_headers)
assert response.status_code == 200, response.content