Let's see how the graph changes if we only cover nkms.

pull/81/head
jMyles 2017-10-17 18:24:19 -07:00
parent b90da13470
commit 334c7807ad
4 changed files with 6 additions and 3 deletions

2
.coveragerc Normal file
View File

@ -0,0 +1,2 @@
[run]
source=nkms

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ __pycache__
/MANIFEST /MANIFEST
/.tox /.tox
/.idea /.idea
.coverage

View File

@ -7,7 +7,7 @@ install:
- pip install pipenv --upgrade - pip install pipenv --upgrade
- pipenv install --dev --three - pipenv install --dev --three
script: script:
- pipenv run "pytest --cov=./ -v tests" - pipenv run "pytest --cov=./nkms/* -v tests"
- codecov - codecov
notifications: notifications:
slack: slack:

View File

@ -69,8 +69,8 @@ class CryptoPower(object):
""" """
try: try:
sig_keypair = self._power_ups[SigningPower] sig_keypair = self._power_ups[SigningPower]
except KeyError: except KeyError as e:
raise NoSigningPower raise NoSigningPower(e)
msg_digest = b"".join(API.keccak_digest(m) for m in messages) msg_digest = b"".join(API.keccak_digest(m) for m in messages)
return sig_keypair.sign(msg_digest) return sig_keypair.sign(msg_digest)