Skip to content

Commit

Permalink
fix: removed UnknownFields call which is not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneLazzaris committed Oct 27, 2023
1 parent f7282c9 commit 4b9ed56
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/immuTestClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def executeWithTransaction(self, concatenatedParams: dict, queries: List[str], s
toExecute.append(self.transactionEnd)
multiLineQuery = separator.join(toExecute)
resp = self.client.sqlExec(multiLineQuery, concatenatedParams)
assert((len(resp.txs) > 0 and not resp.ongoingTx and not resp.UnknownFields())
or len(resp.UnknownFields()) > 0)
assert(len(resp.txs) > 0 and not resp.ongoingTx)
return resp

def _generateTableName(self):
Expand Down Expand Up @@ -104,8 +103,7 @@ def insertToTable(self, table: str, fields: List[str], values: List, params: dic
return self.currentTx.sqlExec(preparedQuery, params)

resp = self.client.sqlExec(preparedQuery, params)
assert((len(resp.txs) > 0 and not resp.ongoingTx and not resp.UnknownFields())
or len(resp.UnknownFields()) > 0)
assert(len(resp.txs) > 0 and not resp.ongoingTx)
return resp

def simpleSelect(self, fromWhat: str, whatToSelect: List[str], params: dict, *conditions: List[str], columnNameMode = constants.COLUMN_NAME_MODE_NONE):
Expand Down

0 comments on commit 4b9ed56

Please sign in to comment.