diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/conftest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 01ece10..6b7c3bc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | import asyncio | 1 | import asyncio |
| 2 | import os | 2 | import os |
| 3 | import sys | ||
| 3 | import tempfile | 4 | import tempfile |
| 4 | from unittest.mock import AsyncMock, MagicMock | 5 | from unittest.mock import AsyncMock, MagicMock |
| 5 | import pytest | 6 | import pytest |
| @@ -7,6 +8,8 @@ import pytest | |||
| 7 | import discord | 8 | import discord |
| 8 | from discord.ext import commands | 9 | from discord.ext import commands |
| 9 | 10 | ||
| 11 | sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) | ||
| 12 | |||
| 10 | 13 | ||
| 11 | @pytest.fixture(autouse=True, scope="function") | 14 | @pytest.fixture(autouse=True, scope="function") |
| 12 | def setup_test_env(monkeypatch): | 15 | def setup_test_env(monkeypatch): |
