Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Fix tests #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix tests #23

wants to merge 1 commit into from

Conversation

bobbbay
Copy link

@bobbbay bobbbay commented Feb 25, 2021

Signed-off-by: Bobbbay [email protected]


When I opened up enCiphey, I noticed that the CI test aren't working. Here's my fix to the problem over there.

On the other hand, now I'm currently having the following error:

================================================= test session starts ==================================================
platform linux -- Python 3.8.5, pytest-4.6.9, py-1.8.1, pluggy-0.13.0
rootdir: /home/bobbbay/enCiphey
collected 0 items / 1 errors

======================================================== ERRORS ========================================================
______________________________________ ERROR collecting tests/test_encryptions.py ______________________________________
tests/test_encryptions.py:5: in <module>
    obj = enciphey.encipher_crypto()
src/enciphey.py:65: in __init__
    self.morse_dict = dict(cipheydists.get_charset("morse"))
../.local/lib/python3.8/site-packages/cipheydists/__init__.py:15: in get_charset
    return json.loads(pkgutil.get_data(__name__, os.path.join("charset", name) + ".json"))
/usr/lib/python3.8/pkgutil.py:637: in get_data
    return loader.get_data(resource_name)
<frozen importlib._bootstrap_external>:972: in get_data
    ???
E   FileNotFoundError: [Errno 2] No such file or directory: '/home/bobbbay/.local/lib/python3.8/site-packages/cipheydists/charset/morse.json'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================== 1 error in 0.76 seconds ================================================

Although, I'm not sure if that's because of a missing dependency on my side.

Signed-off-by: Bobbbay <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant