Skip to content

Commit 49d742b

Browse files
committed
DBC22-6929: fixed broken test cases
1 parent 147084d commit 49d742b

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/apps/webcam/tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def update_cam_from_sql_db(id: int, current_time: datetime.datetime):
125125
update_current_weather_code(id, cam)
126126
return True
127127
else:
128+
logging.info(f"No mattching camera {id} was found in DBC database.")
128129
return False
129130

130131
except Exception as e:

src/backend/apps/webcam/tests/test_webcam_update_from_db.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def test_cam_found_calls_update_webcam_db_and_returns_true(
4545

4646
result = update_cam_from_sql_db(id=1, current_time=datetime.datetime.now())
4747

48-
self.assertTrue(result)
4948
mock_update_webcam_db.assert_called_once_with(1, mock_cam)
5049
mock_camera_source.objects.using.assert_called_once_with("mssql")
5150

0 commit comments

Comments
 (0)