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()
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()
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()
def setUp(self) -> None: super().setUp() RefreshLog.init() self.s = RefreshLog._session() self.s.query(RefreshLog).delete() self.s.commit()