()
| 7 | |
| 8 | |
| 9 | def test_set(): |
| 10 | sa = core.Core() |
| 11 | with taddons.context(loadcore=False) as tctx: |
| 12 | assert tctx.master.options.upstream_cert |
| 13 | tctx.command(sa.set, "upstream_cert", "false") |
| 14 | assert not tctx.master.options.upstream_cert |
| 15 | |
| 16 | with pytest.raises(exceptions.CommandError): |
| 17 | tctx.command(sa.set, "nonexistent") |
| 18 | |
| 19 | |
| 20 | def test_resume(): |