We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d8c7b commit 65f28a4Copy full SHA for 65f28a4
1 file changed
tests/conftest.py
@@ -1,8 +1,10 @@
1
"""Test directory configuration."""
2
3
+from __future__ import annotations
4
+
5
import random
6
import warnings
-from typing import Any, Callable, Iterator, Union
7
+from typing import Callable, Iterator, Union
8
9
import pytest
10
@@ -16,12 +18,6 @@ def pytest_addoption(parser: pytest.Parser) -> None:
16
18
parser.addoption("--no-window", action="store_true", help="Skip tests which need a rendering context.")
17
19
20
-@pytest.fixture(autouse=True)
-def add_tcod_to_namespace(doctest_namespace: dict[str, Any]) -> None:
21
- doctest_namespace["tcod"] = tcod
22
- doctest_namespace["libtcodpy"] = libtcodpy
23
-
24
25
@pytest.fixture
26
def uses_window(request: pytest.FixtureRequest) -> Iterator[None]:
27
"""Marks tests which require a rendering context."""
0 commit comments