Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Jan 30, 2025
1 parent b452191 commit ceb3b2c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,13 @@ def test_engine_online(tmpdir_factory, mock_wildfire_stream, mock_wildfire_image
# With API
load_dotenv(Path(__file__).parent.parent.joinpath(".env").absolute())
api_url = os.environ.get("API_URL")
lat = os.environ.get("LAT")
lon = os.environ.get("LON")
cam_creds = {"dummy_cam": {"login": os.environ.get("API_LOGIN"), "password": os.environ.get("API_PWD")}}
cam_creds = {"dummy_cam": (os.environ.get("API_TOKEN"), 0)}
# Skip the API-related tests if the URL is not specified

if isinstance(api_url, str):
engine = Engine(
api_url=api_url,
cam_creds=cam_creds,
latitude=float(lat),
longitude=float(lon),
nb_consecutive_frames=4,
frame_saving_period=3,
cache_folder=folder,
Expand Down

0 comments on commit ceb3b2c

Please sign in to comment.