tests fetching statistics
(self, inspect)
| 191 | |
| 192 | @flaky |
| 193 | def test_stats(self, inspect): |
| 194 | """tests fetching statistics""" |
| 195 | ret = inspect.stats() |
| 196 | assert len(ret) == 1 |
| 197 | assert ret[NODENAME]['pool']['max-concurrency'] == 1 |
| 198 | assert len(ret[NODENAME]['pool']['processes']) == 1 |
| 199 | assert ret[NODENAME]['uptime'] > 0 |
| 200 | # worker is running in the same process as separate thread |
| 201 | assert ret[NODENAME]['pid'] == os.getpid() |
| 202 | |
| 203 | @flaky |
| 204 | def test_report(self, inspect): |