()
| 107 | |
| 108 | |
| 109 | async def test_lifecycle(): |
| 110 | o = options.Options() |
| 111 | m = master.Master(o) |
| 112 | a = addonmanager.AddonManager(m) |
| 113 | a.add(TAddon("one")) |
| 114 | |
| 115 | assert str(a) |
| 116 | |
| 117 | with pytest.raises(exceptions.AddonManagerError): |
| 118 | a.add(TAddon("one")) |
| 119 | with pytest.raises(exceptions.AddonManagerError): |
| 120 | a.remove(TAddon("nonexistent")) |
| 121 | |
| 122 | f = tflow.tflow() |
| 123 | await a.handle_lifecycle(HttpRequestHook(f)) |
| 124 | |
| 125 | a._configure_all(o.keys()) |
| 126 | |
| 127 | |
| 128 | def test_defaults(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…