Skip to content

Commit 15eb60f

Browse files
committed
typo!
1 parent 9e32752 commit 15eb60f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

smartdispatch/tests/test_smartdispatch.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@
77

88

99
def test_generate_name_from_command():
10-
date_lenght = 20
10+
date_length = 20
1111

1212
command = "command arg1 arg2"
1313
expected = "_".join(command.split())
14-
assert_equal(smartdispatch.generate_name_from_command(command)[date_lenght:], expected)
14+
assert_equal(smartdispatch.generate_name_from_command(command)[date_length:], expected)
1515

1616
max_length_arg = 7
1717
long_arg = "veryverylongarg1"
1818
command = "command " + long_arg + " arg2"
1919
expected = command.split()
2020
expected[1] = long_arg[-max_length_arg:]
2121
expected = "_".join(expected)
22-
assert_equal(smartdispatch.generate_name_from_command(command, max_length_arg)[date_lenght:], expected)
22+
assert_equal(smartdispatch.generate_name_from_command(command, max_length_arg)[date_length:], expected)
2323

2424
max_length = 23
2525
command = "command veryverylongarg1 veryverylongarg1 veryverylongarg1 veryverylongarg1"
2626
expected = command[:max_length].replace(" ", "_")
27-
assert_equal(smartdispatch.generate_name_from_command(command, max_length=max_length + date_lenght)[date_lenght:], expected)
27+
assert_equal(smartdispatch.generate_name_from_command(command, max_length=max_length + date_length)[date_length:], expected)
2828

2929
# Test path arguments in command
3030
command = "command path/number/one path/number/two"
3131
expected = "command_pathnumberone_pathnumbertwo"
32-
assert_equal(smartdispatch.generate_name_from_command(command)[date_lenght:], expected)
32+
assert_equal(smartdispatch.generate_name_from_command(command)[date_length:], expected)
3333

3434

3535
def test_get_commands_from_file():

0 commit comments

Comments
 (0)