Skip to content

Commit 7d460d1

Browse files
fix: fully fixed unit testing
fix typo in pyproject
1 parent 839a2a5 commit 7d460d1

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ authors = [
1414
{email = "Ledger SAS <team-embedded-software+enclave@ledger.fr>"},
1515
]
1616
dependencies = [
17-
"grpcio==1.66.2",
17+
"grpcio>=1.68.1",
1818
"protobuf>=5.27.1,<6",
1919
"six==1.16.0",
2020
]
@@ -78,6 +78,3 @@ skips = ["tests/*.py"]
7878
convention = "pep257"
7979

8080
[tool.setuptools_scm]
81-
82-
[tool.pytest.ini_options]
83-
asyncio_default_fixture_loop_scope = "function"

src/etcd3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from etcd3.locks import Lock
1111
from etcd3.members import Member
1212

13-
__version__ = metadata.version("protect-device")
13+
__version__ = metadata.version("etcd3")
1414
__author__ = "Louis Taylor"
1515
__email__ = "louis@kragniz.eu"
1616

tests/test_etcd3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ def test_channel_with_no_cert(self):
12211221
)
12221222
assert client.uses_secure_channel is False
12231223

1224-
@mock.patch('etcdrpc.AuthStub')
1224+
@mock.patch('etcd3.etcdrpc.AuthStub')
12251225
def test_user_pwd_auth(self, auth_mock):
12261226
auth_resp_mock = mock.MagicMock()
12271227
auth_resp_mock.token = 'foo'

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ commands_pre =
3232
cp {env_tmp_dir}/etcd-v3.3.10-linux-amd64/etcdctl {envdir}/bin
3333
commands =
3434
pifpaf -e PYTHON run etcd --cluster -- py.test --cov=etcd3 --cov-report= --basetemp={envtmpdir} {posargs}
35+
coverage report -m
36+
coverage xml
3537

3638
[testenv:flake8]
3739
commands=flake8 {posargs}

0 commit comments

Comments
 (0)