Skip to content

Commit

Permalink
Fix type issues in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Jul 30, 2023
1 parent 79606f4 commit 5c3d019
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
5 changes: 3 additions & 2 deletions tests/device/device_shadow/binding_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"""

import pytest
from common.plug_indexes import WindowIndex
from control_surfaces import (
ControlEvent,
PlayButton,
Expand Down Expand Up @@ -40,7 +41,7 @@ def _dummy(*args, **kwargs) -> bool:
0.0,
0,
False,
), None)
), WindowIndex.MIXER)


def test_bind_same():
Expand Down Expand Up @@ -82,4 +83,4 @@ def _dummy(*args, **kwargs) -> bool:
0.0,
0,
False,
), None)
), WindowIndex.MIXER)
3 changes: 2 additions & 1 deletion tests/device/device_shadow/process_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# import pytest
# from common.types import FlMidiMsg
from common.plug_indexes import WindowIndex
from control_surfaces import (
ControlEvent,
PlayButton,
Expand All @@ -34,4 +35,4 @@ def test_process_unbound():
0.0,
0,
False,
), None)
), WindowIndex.MIXER)
8 changes: 0 additions & 8 deletions tests/filter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,3 @@ def test_filter_to_window():
assert was_filtered(func, (1, ))
assert was_filtered(func, (1, 2))
assert not was_filtered(func, 0)


def test_filter_out_none():
func = get_function(event_filters.toSafeIndex)
assert was_filtered(func, None)
assert not was_filtered(func, 0)
assert not was_filtered(func, (1, ))
assert not was_filtered(func, (1, 2))

0 comments on commit 5c3d019

Please sign in to comment.