(patching)
| 16 | reason='Function os.getloadavg is not defined' |
| 17 | ) |
| 18 | def test_load_average(patching): |
| 19 | getloadavg = patching('os.getloadavg') |
| 20 | getloadavg.return_value = 0.54736328125, 0.6357421875, 0.69921875 |
| 21 | l = load_average() |
| 22 | assert l |
| 23 | assert l == (0.55, 0.64, 0.7) |
| 24 | |
| 25 | |
| 26 | @pytest.mark.skipif( |
nothing calls this directly
no test coverage detected