for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""rate module tests."""
def test_montly_simple_interest_rate():
test_montly_simple_interest_rate
(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
class SomeClass: def some_method(self): """Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.
from econopy.rates import montly_simple_interest_rate
assert montly_simple_interest_rate(12) == 1.0
def test_cuatrimestral_simple_interest_rate():
test_cuatrimestral_simple_interest_rate
from econopy.rates import cuatrimestral_simple_interest_rate
assert cuatrimestral_simple_interest_rate(3) == 1.0
def test_trimestral_simple_interest_rate():
test_trimestral_simple_interest_rate
from econopy.rates import trimestral_simple_interest_rate
assert trimestral_simple_interest_rate(4) == 1.0
def test_semestral_simple_interest_rate():
test_semestral_simple_interest_rate
from econopy.rates import semestral_simple_interest_rate
assert semestral_simple_interest_rate(2) == 1.0
def test_interes_anual_simple():
from econopy.rates import interes_anual_simple
assert interes_anual_simple(1, 1) == 1
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.