OpenSourceEconomics / grmpy

Python package for the simulation and estimation of generalized Roy model
http://grmpy.readthedocs.io
MIT License
19 stars 5 forks source link

code coveraget to more than 95% #115

Closed peisenha closed 6 years ago

peisenha commented 6 years ago

We just need to add an integration test that raises a UserError ... https://codecov.io/gh/grmToolbox/grmpy/src/master/grmpy/check/custom_exceptions.py This file's coverage is the main culprit.

peisenha commented 6 years ago

This is also easily added as an integration test: https://codecov.io/gh/grmToolbox/grmpy/src/master/grmpy/__init__.py by just calling grmpy.test() test explicitly

SeBecker commented 6 years ago

I added a test to test_integration.py that checks if a UserError is raised when one tries to estimate a deterministic init file with the initialization file values as start values.

SeBecker commented 6 years ago

Further on i added an unit test that ensures that the read process provides the same type lists for the TREATED and UNTREATED section, if i set add a binary flag to different variables in both sections. Additionally the test includes a small snippet that checks that it is not possible to add binary flags to intercept coefficients.

SeBecker commented 6 years ago

sebecker_bugfixes is above 95%. https://codecov.io/gh/grmToolbox/grmpy/branch/sebecker_bugfixes