Skip to content

Commit

Permalink
deviceId -> device_id
Browse files Browse the repository at this point in the history
  • Loading branch information
forest1040 committed Oct 14, 2024
1 parent 4acde84 commit 0fe8b02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/oqtopus_cloud/provider/routers/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def update_device(
try:
device = db.get(Device, device_id)
if device is None:
return NotFoundErrorResponse(f"deviceId={device_id} is not found.")
return NotFoundErrorResponse(f"device_id={device_id} is not found.")
if isinstance(request.root, DeviceStatusUpdate):
return update_device_status(device, request.root, db)
elif isinstance(request.root, DevicePendingTasksUpdate):
Expand Down
4 changes: 2 additions & 2 deletions backend/tests/oqtopus_cloud/user/routers/test_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def test_get_device_hadler(test_db):
assert actual.status_code == 200
# Assert
expected = {
"deviceId": "SVSim",
"deviceType": "simulator",
"device_id": "SVSim",
"device_type": "simulator",
"status": "available",
"available_at": "2023-01-02T12:34:56+09:00",
"n_pending_tasks": 8,
Expand Down

0 comments on commit 0fe8b02

Please sign in to comment.