You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
267 B

from gooey.python_bindings import modules
module_source = \
'''
some_var = 1234
def fooey():
return 10
'''
def test_load_creates_and_imports_module_from_string_source():
module = modules.load(module_source)
assert 10 == module.fooey()