Test that an empty `env` is mutated, not copied and mutated.
()
| 279 | |
| 280 | |
| 281 | def test_empty_env(): |
| 282 | """Test that an empty `env` is mutated, not copied and mutated.""" |
| 283 | md = MarkdownIt() |
| 284 | |
| 285 | env = {} # type: ignore |
| 286 | md.render("[foo]: /url\n[foo]", env) |
| 287 | assert "references" in env |
| 288 | |
| 289 | env = {} |
| 290 | md.parse("[foo]: /url\n[foo]", env) |
| 291 | assert "references" in env |
| 292 | |
| 293 | |
| 294 | def test_table_tokens(data_regression): |
nothing calls this directly
no test coverage detected
searching dependent graphs…