Skip to content

Commit 94401c1

Browse files
authored
Add test for valid_filename with underscore
Updated test for valid_filename to include underscore case.
1 parent 5dd5877 commit 94401c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_MetaDetective.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ def test_valid_filename_basic(self):
346346
self.assertEqual(md.valid_filename("export01"), "export01")
347347

348348
def test_valid_filename_with_dash_underscore(self):
349-
self.assertEqual(md.valid_filename("meta_detective-01"), "meta_detective-01")
349+
# 16 chars, termine par un alphanum, respecte MAX_FILENAME_LENGTH
350+
self.assertEqual(md.valid_filename("meta_detective_1"), "meta_detective_1")
350351

351352
def test_invalid_filename_empty(self):
352353
with self.assertRaises(argparse.ArgumentTypeError):

0 commit comments

Comments
 (0)