Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A missing stanza in the configuration JSON file will cause a KeyError exception #31

Open
jeffsilverm opened this issue Jan 14, 2019 · 0 comments

Comments

@jeffsilverm
Copy link
Owner

============================= test session starts ==============================
platform linux -- Python 3.6.7, pytest-3.3.1, py-1.5.2, pluggy-0.6.0
rootdir: /home/jeffs/python/nbmdt/test, inifile:Testing the __file__ special variable: /home/jeffs/python/nbmdt/utilities.py

test_utilities.py:None (test_utilities.py)
test_utilities.py:16: in <module>
    sd_obj = utilities.SystemDescriptionFile( TEST_CONFIGURATION_FILE )
../utilities.py:273: in __init__
    presentations=c_dict["presentations"],
E   KeyError: 'presentations'
collected 0 items / 1 errors
==================================== ERRORS ====================================
______________________ ERROR collecting test_utilities.py ______________________
test_utilities.py:16: in <module>
    sd_obj = utilities.SystemDescriptionFile( TEST_CONFIGURATION_FILE )
../utilities.py:273: in __init__
    presentations=c_dict["presentations"],
E   KeyError: 'presentations'
------------------------------- Captured stderr --------------------------------
Testing the __file__ special variable: /home/jeffs/python/nbmdt/utilities.py
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!

Before closing this issue, verify that both python and pytest can detect the problem and deal with it safely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant