Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions bumble/testing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2021-2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
File renamed without changes.
3 changes: 1 addition & 2 deletions tests/aics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
Mute,
)
from bumble.profiles.vcs import VolumeControlService, VolumeControlServiceProxy

from .test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
# Tests
Expand Down
3 changes: 1 addition & 2 deletions tests/asha_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

from bumble import device as bumble_device
from bumble.profiles import asha

from .test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
HI_SYNC_ID = b'\x00\x01\x02\x03\x04\x05\x06\x07'
Expand Down
3 changes: 1 addition & 2 deletions tests/avrcp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
import pytest

from bumble import avc, avctp, avrcp

from . import test_utils
from bumble.testing import test_utils


# -----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion tests/bap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
PublishedAudioCapabilitiesService,
PublishedAudioCapabilitiesServiceProxy,
)
from tests.test_utils import TwoDevices, async_barrier
from bumble.testing.test_utils import TwoDevices, async_barrier

# -----------------------------------------------------------------------------
# Logging
Expand Down
3 changes: 1 addition & 2 deletions tests/battery_service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

from bumble import device as device_module
from bumble.profiles import battery_service

from . import test_utils
from bumble.testing import test_utils


# -----------------------------------------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions tests/cap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@

from bumble import device, gatt
from bumble.profiles import cap, csip

from .test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
# Logging
Expand Down
3 changes: 1 addition & 2 deletions tests/csip_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@

from bumble import device
from bumble.profiles import csip

from .test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
# Logging
Expand Down
2 changes: 1 addition & 1 deletion tests/device_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
)
from bumble.host import DataPacketQueue, Host
from bumble.pairing import PairingConfig, PairingDelegate
from .test_utils import TwoDevices, async_barrier
from bumble.testing.test_utils import TwoDevices, async_barrier

# -----------------------------------------------------------------------------
# Constants
Expand Down
3 changes: 1 addition & 2 deletions tests/gatt_service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@

from bumble import device, gatt
from bumble.profiles import gatt_service

from . import test_utils
from bumble.testing import test_utils


# -----------------------------------------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions tests/gatt_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
UTF8CharacteristicAdapter,
UTF8CharacteristicProxyAdapter,
)

from .test_utils import Devices, TwoDevices, async_barrier
from bumble.testing.test_utils import Devices, TwoDevices, async_barrier


# -----------------------------------------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions tests/gmap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
UggFeatures,
UgtFeatures,
)

from .test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
# Tests
Expand Down
3 changes: 1 addition & 2 deletions tests/hap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
from bumble import att, device
from bumble.keys import PairingKeys
from bumble.profiles import hap

from .test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
# Logging
Expand Down
3 changes: 1 addition & 2 deletions tests/heart_rate_service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

from bumble import device as device_module
from bumble.profiles import heart_rate_service

from . import test_utils
from bumble.testing import test_utils


# -----------------------------------------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions tests/hfp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
import pytest_asyncio

from bumble import core, hci, hfp, rfcomm

from .test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
# Logging
Expand Down
3 changes: 1 addition & 2 deletions tests/l2cap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
import pytest

from bumble import core, l2cap

from .test_utils import TwoDevices, async_barrier
from bumble.testing.test_utils import TwoDevices, async_barrier

# -----------------------------------------------------------------------------
# Logging
Expand Down
2 changes: 1 addition & 1 deletion tests/mcp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from bumble import device
from bumble.profiles import mcp
from tests.test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
# Logging
Expand Down
3 changes: 1 addition & 2 deletions tests/rfcomm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
find_rfcomm_channels,
make_service_sdp_records,
)

from . import test_utils
from bumble.testing import test_utils

_TIMEOUT = 0.1

Expand Down
3 changes: 1 addition & 2 deletions tests/sdp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
DataElement,
ServiceAttribute,
)

from .test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
# pylint: disable=invalid-name
Expand Down
3 changes: 1 addition & 2 deletions tests/self_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
OobContext,
OobLegacyContext,
)

from .test_utils import TwoDevices, async_barrier
from bumble.testing.test_utils import TwoDevices, async_barrier

# -----------------------------------------------------------------------------
# Logging
Expand Down
3 changes: 1 addition & 2 deletions tests/vcp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

from bumble import device
from bumble.profiles import vcs

from .test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
# Logging
Expand Down
3 changes: 1 addition & 2 deletions tests/vocs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
VolumeOffsetControlServiceProxy,
VolumeOffsetState,
)

from .test_utils import TwoDevices
from bumble.testing.test_utils import TwoDevices

# -----------------------------------------------------------------------------
# Tests
Expand Down
Loading