Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c36d3299

Přidáno uživatelem David Friesecký před téměř 4 roky(ů)

Re #8670 - Covered certificate_repository by the CRUD tests

Zobrazit rozdíly:

src/dao/certificate_repository.py
196 196
                      certificate.parent_id,
197 197
                      certificate_id]
198 198

  
199
            print(f"Parent: {certificate.parent_id}")
200

  
201 199
            self.cursor.execute(sql, values)
202 200
            self.connection.commit()
203 201

  
......
207 205
            self.cursor.execute(sql, values)
208 206
            self.connection.commit()
209 207

  
208
            check_updated = self.cursor.rowcount > 0
209

  
210 210
            # iterate over usage pairs
211 211
            for usage_id, usage_value in certificate.usages.items():
212 212
                if usage_value:
......
220 220
        except Error as e:
221 221
            raise DatabaseException(e)
222 222

  
223
        return self.cursor.rowcount > 0
223
        return check_updated
224 224

  
225 225
    def delete(self, certificate_id: int):
226 226
        """

Také k dispozici: Unified diff