| Total Complexity | 4 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Test munging filters.""" |
||
| 10 | class TestStr2Dt: |
||
| 11 | """All tests for str2dt function.""" |
||
| 12 | |||
| 13 | def test_title_returns_valid(self): |
||
| 14 | """Test function.""" |
||
| 15 | timestr = '01-05-1900 00:00:00' |
||
| 16 | res = datetimes.str2dt(timestr) |
||
| 17 | assert res == dtparse(timestr) == res |
||
| 18 | |||
| 19 | def test_title_returns_invalid(self): |
||
| 20 | """Test function.""" |
||
| 21 | with pytest.raises(TypeError): |
||
| 22 | datetimes.str2dt(None) |
||
| 23 |