fix tests
This commit is contained in:
18
poetry.lock
generated
18
poetry.lock
generated
@@ -289,6 +289,21 @@ tomli = ">=1.0.0"
|
|||||||
[package.extras]
|
[package.extras]
|
||||||
testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "xmlschema"]
|
testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "xmlschema"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pytest-asyncio"
|
||||||
|
version = "0.19.0"
|
||||||
|
description = "Pytest support for asyncio"
|
||||||
|
category = "dev"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
pytest = ">=6.1.0"
|
||||||
|
typing-extensions = {version = ">=3.7.2", markers = "python_version < \"3.8\""}
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
testing = ["pytest-trio (>=0.7.0)", "mypy (>=0.931)", "flaky (>=3.5.0)", "hypothesis (>=5.7.1)", "coverage (>=6.2)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pytest-cov"
|
name = "pytest-cov"
|
||||||
version = "3.0.0"
|
version = "3.0.0"
|
||||||
@@ -511,7 +526,7 @@ docs = ["myst-parser", "Sphinx", "sphinx-rtd-theme"]
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "1.1"
|
lock-version = "1.1"
|
||||||
python-versions = "^3.7"
|
python-versions = "^3.7"
|
||||||
content-hash = "6c5abe1f014019df280ea421d5d97d382c2bd65b33cef4ef14b4239c7f1eb1c4"
|
content-hash = "2c9314a941f6be6f7ef96dd996650261032c8c3530abdeef4bfdfc4bca8c9fed"
|
||||||
|
|
||||||
[metadata.files]
|
[metadata.files]
|
||||||
alabaster = []
|
alabaster = []
|
||||||
@@ -538,6 +553,7 @@ py = []
|
|||||||
pygments = []
|
pygments = []
|
||||||
pyparsing = []
|
pyparsing = []
|
||||||
pytest = []
|
pytest = []
|
||||||
|
pytest-asyncio = []
|
||||||
pytest-cov = []
|
pytest-cov = []
|
||||||
pytz = []
|
pytz = []
|
||||||
pyyaml = []
|
pyyaml = []
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ docs = [
|
|||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
pytest = "^7.0"
|
pytest = "^7.0"
|
||||||
pytest-cov = "^3.0"
|
pytest-cov = "^3.0"
|
||||||
|
pytest-asyncio = "^0.19.0"
|
||||||
|
|
||||||
[tool.semantic_release]
|
[tool.semantic_release]
|
||||||
branch = "main"
|
branch = "main"
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
from test.util import check_gi_repository, skip_reason_no_gi
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import dbus_fast.introspection as intr
|
import dbus_fast.introspection as intr
|
||||||
from dbus_fast import DBusError, aio, glib
|
from dbus_fast import DBusError, aio, glib
|
||||||
from dbus_fast.message import MessageFlag
|
from dbus_fast.message import MessageFlag
|
||||||
from dbus_fast.service import ServiceInterface, method
|
from dbus_fast.service import ServiceInterface, method
|
||||||
|
from tests.util import check_gi_repository, skip_reason_no_gi
|
||||||
|
|
||||||
has_gi = check_gi_repository()
|
has_gi = check_gi_repository()
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
from test.util import check_gi_repository, skip_reason_no_gi
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from dbus_fast import DBusError, Message, aio, glib
|
from dbus_fast import DBusError, Message, aio, glib
|
||||||
from dbus_fast.service import PropertyAccess, ServiceInterface, dbus_property
|
from dbus_fast.service import PropertyAccess, ServiceInterface, dbus_property
|
||||||
|
from tests.util import check_gi_repository, skip_reason_no_gi
|
||||||
|
|
||||||
has_gi = check_gi_repository()
|
has_gi = check_gi_repository()
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
from test.util import check_gi_repository, skip_reason_no_gi
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from dbus_fast import Message, MessageType, aio, glib
|
from dbus_fast import Message, MessageType, aio, glib
|
||||||
from dbus_fast.service import ServiceInterface, method
|
from dbus_fast.service import ServiceInterface, method
|
||||||
|
from tests.util import check_gi_repository, skip_reason_no_gi
|
||||||
|
|
||||||
has_gi = check_gi_repository()
|
has_gi = check_gi_repository()
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
from test.util import check_gi_repository, skip_reason_no_gi
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from dbus_fast import Message, MessageFlag, MessageType
|
from dbus_fast import Message, MessageFlag, MessageType
|
||||||
from dbus_fast.glib import MessageBus
|
from dbus_fast.glib import MessageBus
|
||||||
|
from tests.util import check_gi_repository, skip_reason_no_gi
|
||||||
|
|
||||||
has_gi = check_gi_repository()
|
has_gi = check_gi_repository()
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
from test.util import check_gi_repository, skip_reason_no_gi
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from dbus_fast import (
|
from dbus_fast import (
|
||||||
@@ -11,6 +9,7 @@ from dbus_fast import (
|
|||||||
aio,
|
aio,
|
||||||
glib,
|
glib,
|
||||||
)
|
)
|
||||||
|
from tests.util import check_gi_repository, skip_reason_no_gi
|
||||||
|
|
||||||
has_gi = check_gi_repository()
|
has_gi = check_gi_repository()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user