Use slice to shorten name

This commit is contained in:
Serene-Arc
2021-03-30 18:22:11 +10:00
committed by Ali Parlakci
parent f06e8f3ac4
commit a170356738
2 changed files with 5 additions and 3 deletions

View File

@@ -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'),