prjemian / punx

Python Utilities for NeXus HDF5 files
https://prjemian.github.io/punx
5 stars 7 forks source link

improve coverage of unit tests #183

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

Improve the code coverage of the unit tests. These modules have coverage below 80%

prjemian commented 2 years ago
(bluesky_2022_1) prjemian@zap:~/.../prjemian/punx$ git grep application_definition
punx/tests/test_validate.py:def TODO_test_application_definition(hfile):
punx/tests/test_validate.py:def TODO_test_contributed_application_definition(hfile):
punx/validate.py:                    self.validate_application_definition(v_item.parent)
punx/validate.py:    def validate_application_definition(self, v_item):
punx/validate.py:        from .validations import application_definition
punx/validate.py:        application_definition.verify(self, v_item)
prjemian commented 2 years ago

LGTM reports that some imports of FileNotFound are unused. Actually, this is superseded by FileNotFoundError now.