Skip to content

Commit 9845ce8

Browse files
authored
Can now run/debug python tests in vscode (#5490)
1 parent 1d74954 commit 9845ce8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@
1919
},
2020

2121
"python.linting.pylintEnabled": false,
22-
"python.linting.flake8Enabled": true
22+
"python.linting.flake8Enabled": true,
23+
24+
"python.pythonPath": "${env.WORKON_HOME}/sentry/bin/python",
25+
"python.unitTest.pyTestEnabled": true,
26+
"python.unitTest.unittestEnabled": false,
27+
"python.unitTest.nosetestsEnabled": false
2328
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
'Pillow>=3.2.0,<3.3.0',
122122
'progressbar2>=3.10,<3.11',
123123
'psycopg2>=2.6.0,<2.7.0',
124-
'pytest>=2.6.4,<2.7.0',
124+
'pytest>=2.8.0,<2.9.0',
125125
'pytest-django>=2.9.1,<2.10.0',
126126
'pytest-html>=1.9.0,<1.10.0',
127127
'python-dateutil>=2.0.0,<3.0.0',

tests/bitfield/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from django import forms
44

5-
from bitfield.tests.models import BitFieldTestModel
5+
from .models import BitFieldTestModel
66

77

88
class BitFieldTestModelForm(forms.ModelForm):

0 commit comments

Comments
 (0)