The allennlp models are having low code coverage. This is because allennlp has changed the way it creates its tests it now does not subclass unittest class but rather uses unittest mock. Thus none of the tests are now running due to the requirement the class name has to have the word Test at the start of the class. This all needs updating along with using setup_method instead of setUp.
The allennlp models are having low code coverage. This is because allennlp has changed the way it creates its tests it now does not subclass unittest class but rather uses unittest mock. Thus none of the tests are now running due to the requirement the class name has to have the word Test at the start of the class. This all needs updating along with using
setup_method
instead ofsetUp
.