Skip to content

Commit

Permalink
Fixing tests. Rebasing with master.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrill committed Nov 29, 2021
1 parent 997ab00 commit e0f7542
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions api/models/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@ class ConfigDTO(SnakeModel):
periodicTasks: Optional[List[PeriodicTaskDTO]] = []


class ConfigMetrics(BaseModel):
social_distancing: bool
facemask: bool
occupancy: bool
in_out: bool


class ConfigInfo(BaseModel):
version: str
device: str
has_been_configured: bool
metrics: ConfigMetrics

class Config:
schema_extra = {
Expand Down
2 changes: 0 additions & 2 deletions api/tests/app/test_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ def test_edit_a_camera_properly(self, config_rollback, camera_sample, rollback_c

camera_id = camera_sample["id"]
body = {
"violation_threshold": 22,
"notify_every_minutes": 22,
"id": camera_id,
"name": "new_Kitchen",
"video_path": "/repo/api/tests/data/mocked_data/data/softbio_vid.mp4",
Expand Down

0 comments on commit e0f7542

Please sign in to comment.