Skip to content

Commit

Permalink
debugging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgriffin committed May 16, 2024
1 parent 0160133 commit 58491df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion tests/test_signature_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 58491df

Please sign in to comment.