Use slice to shorten name

This commit is contained in:
Serene-Arc authored and Ali Parlakci committed 2021-04-18 16:44:51 +03:00
1 parent f06e8f3ac4
commit a170356738
2 files changed
+5 -3

No files matched your search

@@ -160,6 +160,7 @@ def test_limit_filename_length(test_filename: str, test_ending: str):
@pytest.mark.parametrize(('test_filename', 'test_ending', 'expected_end'), (
('test_aaaaaa', '_1.png', 'test_aaaaaa_1.png'),
('test_aataaa', '_1.png', 'test_aataaa_1.png'),
('test_abcdef', '_1.png', 'test_abcdef_1.png'),
('test_aaaaaa', '.png', 'test_aaaaaa.png'),
('test', '_1.png', 'test_1.png'),
('test_m1hqw6', '_1.png', 'test_m1hqw6_1.png'),