mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-21 10:15:04 +02:00
Additional fixes made:
- Comprehensive hex-based color mapping (~200 Bambu colors from CSV) - Fixed tooltips to use Bambu color lookup - Widened modals (max-w-md → max-w-lg) - Adjusted grid layout to fit long color names - Service worker bumped to v21 Pending changes in bambuddy repo: - CHANGELOG.md, README.md - backend/app/api/routes/print_queue.py - backend/tests/integration/test_print_queue_api.py - frontend components (ReprintModal, AddToQueueModal, EditQueueItemModal) - sw.js (v21)
This commit is contained in:
@@ -147,6 +147,27 @@ class TestPrintQueueAPI:
|
||||
assert result["status"] == "pending"
|
||||
assert result["manual_start"] is True
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.integration
|
||||
async def test_add_to_queue_with_ams_mapping(
|
||||
self, async_client: AsyncClient, printer_factory, archive_factory, db_session
|
||||
):
|
||||
"""Verify item can be added to queue with ams_mapping."""
|
||||
printer = await printer_factory()
|
||||
archive = await archive_factory()
|
||||
|
||||
data = {
|
||||
"printer_id": printer.id,
|
||||
"archive_id": archive.id,
|
||||
"ams_mapping": [5, -1, 2, -1], # Slot 1 -> tray 5, slot 3 -> tray 2
|
||||
}
|
||||
response = await async_client.post("/api/v1/queue/", json=data)
|
||||
assert response.status_code == 200
|
||||
result = response.json()
|
||||
assert result["printer_id"] == printer.id
|
||||
assert result["archive_id"] == archive.id
|
||||
assert result["ams_mapping"] == [5, -1, 2, -1]
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.integration
|
||||
async def test_get_queue_item(self, async_client: AsyncClient, queue_item_factory, db_session):
|
||||
|
||||
Reference in New Issue
Block a user