Test no warnings are produced when using the client.
(self)
| 60 | """ |
| 61 | |
| 62 | def test_resource_warnings(self): |
| 63 | """ |
| 64 | Test no warnings are produced when using the client. |
| 65 | """ |
| 66 | |
| 67 | with warnings.catch_warnings(record=True) as w: |
| 68 | warnings.simplefilter('always') |
| 69 | |
| 70 | client = docker.APIClient(version='auto', **kwargs_from_env()) |
| 71 | client.images() |
| 72 | client.close() |
| 73 | del client |
| 74 | |
| 75 | assert len(w) == 0, f"No warnings produced: {w[0].message}" |
nothing calls this directly
no test coverage detected