From 58491df1641fdb8ca47baa72c934433390155118 Mon Sep 17 00:00:00 2001 From: andreasgriffin Date: Thu, 16 May 2024 17:17:01 +0200 Subject: [PATCH] debugging workflow --- .github/workflows/python-tests.yml | 2 +- tests/test_signature_manager.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index ad18cdb..d6907e0 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -38,4 +38,4 @@ jobs: Xvfb :99 -screen 0 1920x1080x24 & sleep 3 # Give Xvfb a moment to start export DISPLAY=:99 - poetry run pytest -vvv + pytest -vvv --log-cli-level=DEBUG --maxfail=1 \ No newline at end of file diff --git a/tests/test_signature_manager.py b/tests/test_signature_manager.py index c4f5770..f37864b 100644 --- a/tests/test_signature_manager.py +++ b/tests/test_signature_manager.py @@ -26,18 +26,22 @@ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. - +import logging import tempfile from pathlib import Path from bitcoin_safe.signature_manager import KnownGPGKeys, SignatureVerifyer +logger = logging.getLogger(__name__) + def test_download_manifest_and_verify(): manager = SignatureVerifyer(list_of_known_keys=KnownGPGKeys.all()) with tempfile.TemporaryDirectory() as tempdir: + logger.debug(f"tempdir {tempdir}") sig_filename = manager.get_signature_from_web(Path(tempdir) / "Sparrow-1.8.4-x86_64.dmg") + logger.debug(f"sig_filename {sig_filename}") assert sig_filename == Path(tempdir) / "sparrow-1.8.4-manifest.txt.asc" assert manager.is_signature_file_available(Path(tempdir) / "sparrow-1.8.4-manifest.txt") assert manager._verify_file(Path(tempdir) / "sparrow-1.8.4-manifest.txt", signature_file=sig_filename)