コード例 #1
0
 def test_submit(self):
     config = remus.manage.Config(config_test.DEFAULT_DB, 'process', workdir="tmp_dir")
     manager = remus.manage.Manager(config)
     instance = manager.submit('tableTest', 'test_tableTarget.Submission', {'opcount' : 15})
     manager.wait(instance)
     
     db = remus.db.connect(config_test.DEFAULT_DB)
     for table in db.listTables(instance):
         if table.table.endswith("@error"):
             hasError = False
             for key in db.listKeys(table):
                 hasError = True
             assert not hasError
コード例 #2
0
ファイル: test_chain.py プロジェクト: kellrott/Remus
    def test_submit(self):
        config = remus.manage.Config(config_test.DEFAULT_DB, "process", workdir="tmp_dir")
        manager = remus.manage.Manager(config)
        instance = manager.submit("tableTest", "test_chain.Submission", {})
        manager.wait(instance)

        db = remus.db.connect(config_test.DEFAULT_DB)
        for table in db.listTables(instance):
            if table.table.endswith("@error"):
                hasError = False
                for key, val in db.listKeyValue(table):
                    print key, val
                    hasError = True
                assert not hasError
コード例 #3
0
 def test_submit(self):
     config = remus.manage.Config(config_test.DEFAULT_DB, 'process', workdir="tmp_dir")
     manager = remus.manage.Manager(config)
     instance = manager.submit('tableTest', 'test_remapTarget.Submission')
     manager.wait(instance)
     
     db = remus.db.connect(config_test.DEFAULT_DB)
     for table in db.listTables(instance):
         if table.table.endswith("@error"):
             keys = list(db.listKeys(table))
             assert len(keys) == 0
     
     table = remus.db.TableRef(instance, "/tableTest/remap_child")
     keys = []
     for key in db.listKeys(table):
         keys.append(key)
     
     assert "mix_0" in keys
     assert "mix_1" in keys
     assert "mix_2" in keys
     assert "mix_3" in keys
     assert "mix_4" in keys