for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import unittest
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 math import isnan, nan
nan
math
from foil.converters import nan_to_none, none_to_nan
class TestNanConverters(unittest.TestCase):
def test_nan_to_none(self):
self.assertIsNone(nan_to_none(nan))
self.assertEqual(1, nan_to_none(1))
def test_none_to_nan(self):
self.assertTrue(isnan(none_to_nan(None)))
self.assertEqual(1, none_to_nan(1))
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.