Skip to content
Snippets Groups Projects
Commit b4e82be9 authored by Pierre Penninckx's avatar Pierre Penninckx
Browse files

[fix] add test showing .append() breaks help

refs #120
parent ded6209d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -99,11 +99,49 @@ def test_get_helpers():
assert red[0]._get_helpers() == ['modules', 'names']
 
 
def test_help_is_not_crashing():
def test_help_is_not_crashing1():
some_code = "ax + (z * 4)"
red = RedBaron(some_code)
red.help()
red[0].help()
red.help(5)
red[0].help(5)
red.help(True)
red[0].help(True)
def test_help_is_not_crashing2():
some_code = "a(b)"
red = RedBaron(some_code)
red.help()
red[0].help()
red.help(5)
red[0].help(5)
red.help(True)
red[0].help(True)
def test_help_is_not_crashing3():
some_code = "a(b, c)"
red = RedBaron(some_code)
red.help()
red[0].help()
red.help(5)
red[0].help(5)
red.help(True)
red[0].help(True)
def test_help_is_not_crashing4():
some_code = "a(b)"
red = RedBaron(some_code)
red[0].call.append("c")
red.help()
red[0].help()
red.help(5)
red[0].help(5)
red.help(True)
red[0].help(True)
 
 
def test_assign_on_string_value():
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment