mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-06-23 03:50:52 -04:00
15 lines
371 B
Python
15 lines
371 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 = Machine.current(refresh=True)
|
|
|
|
response = client.get(f"/api/v1/machine/machine/{machine.id}", **api_headers)
|
|
|
|
assert response.status_code == 200, response.content
|