예제 #1
0
    def test_auto_recomputing(self):
        args = argparse.Namespace(test=True,
                                  export=None,
                                  report=False,
                                  recomputing='AUTO')
        session = recomputing.main(args)

        graph_report = json.loads(session.getGraphReport())
        mem = sum(graph_report['memory']['byTile']['total'])
        print("Memory use (auto recomputing) -->", mem)
예제 #2
0
    def test_manual_recomputing(self):
        args = argparse.Namespace(test=True,
                                  export=None,
                                  report=False,
                                  recomputing='ON')
        session = recomputing.main(args)

        graph_report = json.loads(session.getGraphReport())
        pytest.recomputing_memory = sum(
            graph_report['memory']['byTile']['total'])