コード例 #1
0
    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)
コード例 #2
0
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
コード例 #3
0
ファイル: helper.py プロジェクト: jmikedupont2/pythoscope
def EmptyProjectExecution():
    return Execution(EmptyProject())
コード例 #4
0
 def make_new_execution(self):
     return Execution(project=self)
コード例 #5
0
 def clear_previous_run(self):
     self.execution.destroy()
     self.execution = Execution(self.project)