tkrebes / nisyscfg-python

NI System Configuration Python API
MIT License
4 stars 0 forks source link

Rebased with latest API #9

Closed tkrebes closed 4 years ago

tkrebes commented 4 years ago

Moved "import pkg_resources" to Addons.getattr to fixed Python 2.7 addons tests Expanding unit test coverage Added class AddonMock, def entry_points_mock, and def test_create_filter_and_get_valid_properties Added test_create_hardware_resource_and_get_valid_properties Added test_expert_info_iterator_raises_error_after_close and test_hardware_resource_raises_error_after_close Expanded test coverage. Added two tests: test_find_hardware_with_passed_filter_properties_specified, and test_filter_getattr_raises_error_when_invalid_addon_specified. Updated addons.py to correctly return an attribute error. Fixed _get_property() in HardwareResource to raise AttributeError when the PropDoesNotExist status code is returned