Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sindrehan committed May 28, 2024
1 parent 9976002 commit e1bc5eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.12"
- name: Install Poetry
uses: abatilo/[email protected]
with:
Expand Down
3 changes: 3 additions & 0 deletions tests/test_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,15 +232,18 @@ def test_altitude_is_none_on_invalid_readings(mocked_drone):
)
assert mocked_drone.altitude is None


def test_altitude_is_none_on_missing_readings(mocked_drone):
assert mocked_drone.altitude is None


def test_altitude_is_correct_on_valid_readings(mocked_drone):
mocked_drone._telemetry_watcher._state[bp.AltitudeTel] = bp.AltitudeTel.serialize(
bp.AltitudeTel(altitude={"value": 10.5, "is_valid": True})
)
assert mocked_drone.altitude == 10.5


def test_gp_cam_recording(mocked_drone):
mocked_drone.gp_cam = Camera(mocked_drone, is_guestport_camera=True)
record_state_tel = bp.RecordStateTel(
Expand Down

0 comments on commit e1bc5eb

Please sign in to comment.