Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Jun 24, 2024
1 parent 1c9fa41 commit c862307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_engine_offline(tmpdir_factory, mock_wildfire_image, mock_forest_image):
engine.clear_cache()

# inference
engine = Engine(nb_consecutive_frames=4, cache_folder=folder)
engine = Engine(nb_consecutive_frames=4, cache_folder=folder, save_captured_frames=True)
out = engine.predict(mock_forest_image)
assert isinstance(out, float) and 0 <= out <= 1
assert len(engine._states["-1"]["last_predictions"]) == 1
Expand Down

0 comments on commit c862307

Please sign in to comment.