def __init__(self, project, name): Localizable.__init__(self, project, project.subpath_for_point_of_entry(name)) self.project = project self.name = name self.execution = Execution(project)
def inspect_returning_callables_and_execution(fun, ignored_functions=None): project = ProjectMock(ignored_functions or []) execution = Execution(project=project) try: inspect_code_in_context(fun, execution) # Don't allow any POEs exceptions to propagate to the testing code. # Catch both string and normal exceptions. except: print("Caught exception inside point of entry:", last_exception_as_string()) print(last_traceback()) return project.get_callables(), execution
def EmptyProjectExecution(): return Execution(EmptyProject())
def make_new_execution(self): return Execution(project=self)
def clear_previous_run(self): self.execution.destroy() self.execution = Execution(self.project)