(self, tdata)
| 7 | |
| 8 | class TestScripts: |
| 9 | def test_add_header(self, tdata): |
| 10 | with taddons.context() as tctx: |
| 11 | a = tctx.script(tdata.path("../examples/addons/anatomy2.py")) |
| 12 | f = tflow.tflow() |
| 13 | a.request(f) |
| 14 | assert f.request.headers["myheader"] == "value" |
| 15 | |
| 16 | def test_custom_contentviews(self, tdata): |
| 17 | with taddons.context() as tctx: |