Fix %d and empty default in outtmpl

Closes #388
This commit is contained in:
pukkandan 2021-06-09 14:43:51 +05:30
parent b5c5d84f60
commit 639f1cea92
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
4 changed files with 11 additions and 2 deletions

View file

@ -126,6 +126,7 @@ class TestUtil(unittest.TestCase):
self.assertTrue(timeconvert('bougrg') is None)
def test_sanitize_filename(self):
self.assertEqual(sanitize_filename(''), '')
self.assertEqual(sanitize_filename('abc'), 'abc')
self.assertEqual(sanitize_filename('abc_d-e'), 'abc_d-e')