Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_renderer():
ipysheet.sheet()
renderer = ipysheet.renderer('code', 'name')
assert renderer.code == 'code'
assert renderer.name == 'name'
def somefunction(x):
pass
def f(x):
somefunction(x)
f(1) # for coverage
renderer = ipysheet.renderer(f, 'name2')
assert "somefunction" in renderer.code
assert renderer.name == 'name2'
def test_renderer():
ipysheet.sheet()
renderer = ipysheet.renderer('code', 'name')
assert renderer.code == 'code'
assert renderer.name == 'name'
def somefunction(x):
pass
def f(x):
somefunction(x)
f(1) # for coverage
renderer = ipysheet.renderer(f, 'name2')
assert "somefunction" in renderer.code
assert renderer.name == 'name2'