Skip to content

Commit

Permalink
chore: don't import from site-packages when running tests in vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
bj00rn committed Dec 11, 2023
1 parent 024afce commit 1fef35b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PYTHONPATH="src"
8 changes: 7 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
"request": "launch",
"module": "aiohttp.web",
"justMyCode": true,
"args": ["-H", "localhost", "-P", "3001", "tests.utils.test_server:run_server"]
"args": [
"-H",
"localhost",
"-P",
"3001",
"tests.utils.test_server:run_server"
]
},
{
"name": "Debug CLI",
Expand Down
Empty file added tests/__init__.py
Empty file.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import pytest
import pytest_asyncio
from aiohttp import web
from utils.test_server import WebsocketView

from .utils.test_server import WebsocketView


@pytest.fixture(scope="session")
Expand Down

0 comments on commit 1fef35b

Please sign in to comment.