(self, tmpdir)
| 133 | |
| 134 | class TestMapLocal: |
| 135 | def test_configure(self, tmpdir): |
| 136 | ml = MapLocal() |
| 137 | with taddons.context(ml) as tctx: |
| 138 | tctx.configure(ml, map_local=["/foo/bar/" + str(tmpdir)]) |
| 139 | with pytest.raises(Exception, match="Invalid regular expression"): |
| 140 | tctx.configure(ml, map_local=["/foo/+/" + str(tmpdir)]) |
| 141 | with pytest.raises(Exception, match="Invalid file path"): |
| 142 | tctx.configure(ml, map_local=["/foo/.+/three"]) |
| 143 | |
| 144 | def test_simple(self, tmpdir): |
| 145 | ml = MapLocal() |