Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update test dependencies #1191

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[pytest]
asyncio_mode=auto
testdox_format = plaintext
addopts = --testdox --timeout 20 --ignore e2e --ignore tests/e2e
norecursedirs=__pycache__, *.egg-info
Expand Down
4 changes: 2 additions & 2 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest < 8.0.0
pytest-asyncio <= 0.16
pytest < 9.0.0
pytest-asyncio
pytest-mock
pytest-testdox>=1.1.1
pytest-cov
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/iothub_e2e/aio/test_c2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)

pytestmark = pytest.mark.asyncio

# TODO: add tests for various application properties
# TODO: is there a way to call send_c2d so it arrives as an object rather than a JSON string?
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/iothub_e2e/aio/test_connect_disconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)

pytestmark = pytest.mark.asyncio


@pytest.mark.describe("Client object")
class TestConnectDisconnect(object):
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/iothub_e2e/aio/test_connect_disconnect_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)

pytestmark = pytest.mark.asyncio


@pytest.mark.stress
@pytest.mark.describe("Client object connect/disconnect stress")
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/iothub_e2e/aio/test_infrastructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import pytest
import uuid

pytestmark = pytest.mark.asyncio


@pytest.mark.describe("ServiceHelper object")
class TestServiceHelper(object):
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/iothub_e2e/aio/test_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)

pytestmark = pytest.mark.asyncio


@pytest.fixture
def method_name():
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/iothub_e2e/aio/test_sas_renewal.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)

pytestmark = pytest.mark.asyncio


@pytest.mark.skipif(
test_config.config.auth not in test_config.AUTH_WITH_RENEWING_TOKEN,
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/iothub_e2e/aio/test_send_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)

pytestmark = pytest.mark.asyncio


@pytest.mark.describe("Client send_message method")
class TestSendMessage(object):
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/iothub_e2e/aio/test_send_message_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)

pytestmark = pytest.mark.asyncio

# Settings that apply to all tests in this module
TELEMETRY_PAYLOAD_SIZE = 16 * 1024
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/iothub_e2e/aio/test_twin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)

pytestmark = pytest.mark.asyncio


# TODO: tests with drop_incoming and reject_incoming

Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/iothub_e2e/aio/test_twin_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
logger = logging.getLogger(__name__)
logger.setLevel(level=logging.INFO)

pytestmark = pytest.mark.asyncio


@pytest.fixture
def toxic():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
)


pytestmark = pytest.mark.asyncio
logging.basicConfig(level=logging.DEBUG)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import os
import uuid

pytestmark = pytest.mark.asyncio

logging.basicConfig(level=logging.DEBUG)


Expand Down
1 change: 0 additions & 1 deletion tests/unit/common/test_async_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import azure.iot.device.common.async_adapter as async_adapter

logging.basicConfig(level=logging.DEBUG)
pytestmark = pytest.mark.asyncio


@pytest.fixture
Expand Down
1 change: 0 additions & 1 deletion tests/unit/iothub/aio/test_async_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
SharedIoTHubModuleClientCreateFromEdgeEnvironmentWithDebugEnvTests,
)

pytestmark = pytest.mark.asyncio
logging.basicConfig(level=logging.DEBUG)


Expand Down
1 change: 0 additions & 1 deletion tests/unit/iothub/aio/test_async_handler_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from azure.iot.device.iothub.inbox_manager import InboxManager
from azure.iot.device.iothub.aio.async_inbox import AsyncClientInbox

pytestmark = pytest.mark.asyncio
logging.basicConfig(level=logging.DEBUG)

# NOTE ON TEST IMPLEMENTATION:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


logging.basicConfig(level=logging.DEBUG)
pytestmark = pytest.mark.asyncio


async def create_completed_future(result=None):
Expand Down