v.0.8.8 Added to Dockerfile: # This will make sure printing in the Screen when running in detached mode ENV PYTHONUNBUFFERED=1 Added packages to sample Dockerfile: pytest Added Code Coverage for case in StringUtils where o_stringutils.convert_string_to_integer("") is sent an empty string. Refactor StringUtils.convert_to_gb() to convert_kb_to_gb(). Added Unit Testing for convert_kb_to_gb(). Code Coverage from StringUtils raised to 83%. Added Unit Testing for StringUtils convert_bytes_to_best_size() Covering all the cases for StringUtils.convert_to_multiple_units() Added Code Coverage StringUtils.get_dict_value() raising Code Coverage in the class to 88%. Added Code Coverage StringUtils.get_bytes_per_second() raising Code Coverage to 89%. Added Code Coverage StringUtils.get_percent() and added special case for division by 0. Code Coverage is 95%. If StringUtils.get_bytes_per_second() if passed 0 as seconds, this is considered 1 second. We avoid a Division by Zero error, and in most of cases, you want to know the allowed bandwidth, so considered that it took 1 second will be correct. OsUtils.update_is_in_vbox_or_amazon_or_gcp() now transforms to lowercase first, before searching. OsUtils.update_is_in_openstack() now transforms to lowercase first, before searching.
v.0.8.8
Added to Dockerfile:
This will make sure printing in the Screen when running in detached mode
ENV PYTHONUNBUFFERED=1
Added packages to sample Dockerfile: pytest
Added Code Coverage for case in StringUtils where o_stringutils.convert_string_to_integer("") is sent an empty string.
Refactor StringUtils.convert_to_gb() to convert_kb_to_gb().
Added Unit Testing for convert_kb_to_gb(). Code Coverage from StringUtils raised to 83%.
Added Unit Testing for StringUtils convert_bytes_to_best_size()
Covering all the cases for StringUtils.convert_to_multiple_units()
Added Code Coverage StringUtils.get_dict_value() raising Code Coverage in the class to 88%.
Added Code Coverage StringUtils.get_bytes_per_second() raising Code Coverage to 89%.
Added Code Coverage StringUtils.get_percent() and added special case for division by 0. Code Coverage is 95%.
If StringUtils.get_bytes_per_second() if passed 0 as seconds, this is considered 1 second. We avoid a Division by Zero error, and in most of cases, you want to know the allowed bandwidth, so considered that it took 1 second will be correct.
OsUtils.update_is_in_vbox_or_amazon_or_gcp() now transforms to lowercase first, before searching. OsUtils.update_is_in_openstack() now transforms to lowercase first, before searching.