Skip to content

Commit c38232c

Browse files
committed
Fixing tests. Rebasing with master.
1 parent 69d21b4 commit c38232c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

api/models/config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ class ConfigDTO(SnakeModel):
2929
periodicTasks: Optional[List[PeriodicTaskDTO]] = []
3030

3131

32+
class ConfigMetrics(BaseModel):
33+
social_distancing: bool
34+
facemask: bool
35+
occupancy: bool
36+
in_out: bool
37+
38+
3239
class ConfigInfo(BaseModel):
3340
version: str
3441
device: str
3542
has_been_configured: bool
43+
metrics: ConfigMetrics
3644

3745
class Config:
3846
schema_extra = {

api/tests/app/test_camera.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ def test_edit_a_camera_properly(self, config_rollback, camera_sample, rollback_c
171171

172172
camera_id = camera_sample["id"]
173173
body = {
174-
"violation_threshold": 22,
175-
"notify_every_minutes": 22,
176174
"id": camera_id,
177175
"name": "new_Kitchen",
178176
"video_path": "/repo/api/tests/data/mocked_data/data/softbio_vid.mp4",

0 commit comments

Comments
 (0)