Skip to content

Commit

Permalink
fix broken camera tests
Browse files Browse the repository at this point in the history
  • Loading branch information
odudex committed Aug 15, 2024
1 parent aeaac1a commit 759eb9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def test_init(mocker, m5stickv):
from krux.camera import Camera

c = Camera()
c._initialize_sensor()
c.initialize_sensor()

assert isinstance(c, Camera)

Expand All @@ -20,7 +20,7 @@ def test_initialize_sensor(mocker, m5stickv):

mocker.spy(c, "config_ov_7740")

c._initialize_sensor()
c.initialize_sensor()

c.config_ov_7740.assert_called()
krux.camera.sensor.reset.assert_called()
Expand All @@ -46,7 +46,7 @@ def test_initialize_sensor_ov2640(mocker, m5stickv):

mocker.spy(c, "config_ov_2640")

c._initialize_sensor()
c.initialize_sensor()

c.config_ov_2640.assert_called()

Expand Down

0 comments on commit 759eb9b

Please sign in to comment.