python-pskc branch master updated. 1.2-15-gc002d92
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-pskc branch master updated. 1.2-15-gc002d92
- From: Commits of the python-pskc project <python-pskc-commits [at] lists.arthurdejong.org>
- To: python-pskc-commits [at] lists.arthurdejong.org
- Reply-to: python-pskc-users [at] lists.arthurdejong.org, python-pskc-commits [at] lists.arthurdejong.org
- Subject: python-pskc branch master updated. 1.2-15-gc002d92
- Date: Sun, 8 Sep 2024 18:42:48 +0200 (CEST)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-pskc".
The branch, master has been updated
via c002d92df42398987bd08947cdc4fcbef6295872 (commit)
from c3f744db315f823b72b9138e84f7fe887cc670fb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-pskc/commit/?id=c002d92df42398987bd08947cdc4fcbef6295872
commit c002d92df42398987bd08947cdc4fcbef6295872
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Sun Sep 8 18:20:25 2024 +0200
Have tests fail on missing coverage
This also only prints missed coverage on the terminal after the tests.
Fixes 1d6e115 (removed requirement) and e99f7c8 (reduced coverage below
100%)
diff --git a/setup.cfg b/setup.cfg
index 2018910..a35b935 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -9,7 +9,7 @@ group=root
universal = 1
[tool:pytest]
-addopts = --doctest-modules --doctest-glob="*.doctest" pskc tests --cov=pskc
--cov-report=term-missing --cov-report=html
+addopts = --doctest-modules --doctest-glob="*.doctest" pskc tests --cov=pskc
--cov-report=term-missing:skip-covered --cov-report=html
doctest_optionflags = IGNORE_EXCEPTION_DETAIL
[coverage:run]
diff --git a/tests/test_write.doctest b/tests/test_write.doctest
index 3b6196a..c1ea198 100644
--- a/tests/test_write.doctest
+++ b/tests/test_write.doctest
@@ -1,6 +1,6 @@
test_write.doctest - tests for writing PSKC files
-Copyright (C) 2014-2022 Arthur de Jong
+Copyright (C) 2014-2024 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -318,7 +318,7 @@ specified and we assume to use the encryption key as MAC
key).
If we decrypt the file the MAC key will be included in encrypted form.
->>> pskc.encryption.derive_key('qwerty')
+>>> pskc.encryption.derive_key(b'qwerty')
>>> pskc.write(sys.stdout) #doctest: +ELLIPSIS +REPORT_UDIFF
<?xml version="1.0" encoding="UTF-8"?>
<pskc:KeyContainer ... Version="1.0">
diff --git a/tox.ini b/tox.ini
index 6cde845..595610a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,7 +9,7 @@ deps = pytest
signxml: defusedxml
lxml: lxml
defusedxml: defusedxml
-commands = signxml: pytest
+commands = signxml: pytest --cov-fail-under 100
legacy: pytest --ignore=tests/test_signature.doctest
--cov-fail-under 95
lxml: pytest --ignore=tests/test_signature.doctest --cov-fail-under
95
setenv=
-----------------------------------------------------------------------
Summary of changes:
setup.cfg | 2 +-
tests/test_write.doctest | 4 ++--
tox.ini | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
python-pskc
- python-pskc branch master updated. 1.2-15-gc002d92,
Commits of the python-pskc project