Module ImportFrom alias Import alias Import alias Import alias Import alias Assign NameStore NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str NameLoad Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list
N/A helpers LuigiTestCase N/A luigi N/A luigi.interface N/A tempfile N/A re N/A _testing_glob_var None CmdlineTest N/A LuigiTestCase N/A test_dynamic_loading N/A N/A self N/A N/A N/A N/A N/A tempfile NamedTemporaryFile dir test/ prefix _foo_module suffix .py temp_module_file N/A N/A N/A N/A N/A temp_module_file file write 
import luigi

class FooTask(luigi.Task):
    x = luigi.IntParameter()

    def run(self):
        luigi._testing_glob_var = self.x
 N/A N/A N/A N/A temp_module_file file flush N/A temp_module_path N/A temp_module_file name N/A temp_module_name N/A N/A N/A N/A re search /(_foo_module.*).py temp_module_path group 1 N/A N/A N/A N/A luigi interface run N/A --module temp_module_name FooTask --x 123 --local-scheduler --no-lock N/A N/A N/A self assertEqual N/A luigi _testing_glob_var 123 N/A N/A