Esempio n. 1
0
 def setUp(self) -> None:
     super().setUp()
     RefreshLog.init(create_all=True)
     self.s = RefreshLog._session()
     self.s.query(RefreshLog).delete()
     self.s.add(RefreshLog(ID1))
     self.s.commit()
Esempio n. 2
0
 def setUp(self) -> None:
     super().setUp()
     self.ci = _ClamavTestItem(url=URL1, section=self.UNITTEST, option='option', path='path')
     RefreshLog.init()
     self.s = RefreshLog._session()
     self.s.query(RefreshLog).delete()
     self.s.add(RefreshLog(self.ci, DIGEST_DUMMY))
     self.s.commit()
Esempio n. 3
0
 def setUp(self) -> None:
     super().setUp()
     RefreshLog.init()
     self.s = RefreshLog._session()
     self.s.query(RefreshLog).delete()
     cia = _ClamavTestItem('spam', 'option', 'a', path='a')
     cib = _ClamavTestItem('spamalot', 'option', 'b', path='b')
     self.s.add(RefreshLog(cia, 'dummy'))
     self.s.add(RefreshLog(cib, 'dummy'))
     self.s.commit()
     self.s.commit()
Esempio n. 4
0
 def setUp(self) -> None:
     super().setUp()
     RefreshLog.init()
     self.s = RefreshLog._session()
     self.s.query(RefreshLog).delete()
     self.s.commit()