(self)
| 130 | |
| 131 | |
| 132 | def deletePackages(self): |
| 133 | info = choice([self.api.getQueue(), self.api.getCollector()]) |
| 134 | if not info: return |
| 135 | |
| 136 | pids = [p.pid for p in info] |
| 137 | if len(pids): |
| 138 | pids = sample(pids, randint(1, max(floor(len(pids) / 2.5), 1))) |
| 139 | self.api.deletePackages(pids) |
| 140 | |
| 141 | def getFileData(self): |
| 142 | info = self.api.getQueueData() |
no test coverage detected