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

  1. from gooey.python_bindings import modules
  2. module_source = \
  3. '''
  4. some_var = 1234
  5. def fooey():
  6. return 10
  7. '''
  8. def test_load_creates_and_imports_module_from_string_source():
  9. module = modules.load(module_source)
  10. assert 10 == module.fooey()