Skip to content

Commit de03111

Browse files
committed
Include tests in pycodestyle check
Signed-off-by: Haiko Schol <hs@haikoschol.com>
1 parent ec9abb6 commit de03111

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
- SECRET_KEY="i1bn=oly)w*2yl-5yc&f!vvgt)p)fh3_2$r#spa!*sw36f5ov7"
1212

1313
before_script:
14-
- pycodestyle --exclude=migrations,settings.py,lib,tests --max-line-length=100 .
14+
- pycodestyle --exclude=migrations,settings.py,lib --max-line-length=100 .
1515
- psql -c "CREATE DATABASE vulnerablecode;" -U postgres
1616
- ./manage.py migrate
1717

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ the code Django includes for this purpose: `SECRET_KEY=$(python -c "from django.
5353
## Tests
5454

5555
```
56-
pycodestyle --exclude=migrations,settings.py,venv,tests --max-line-length=100 .
56+
pycodestyle --exclude=migrations,settings.py,venv --max-line-length=100 .
5757
python -m pytest -v vulnerabilities/tests/test_scrapers.py vulnerabilities/tests/test_api_data.py
5858
```
5959

vulnerabilities/tests/test_import_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
class ImportCommandTest(TestCase):
3232
def test_list_sources(self):
3333
buf = StringIO()
34-
34+
3535
call_command('import', '--list', stdout=buf)
36-
36+
3737
out = buf.getvalue()
3838
self.assertIn('debian', out)
3939
self.assertIn('ubuntu', out)
4040
self.assertIn('archlinux', out)
4141

4242
def test_missing_sources(self):
43-
with self.assertRaises(CommandError) as cm:
44-
call_command('import', stdout=StringIO())
43+
with self.assertRaises(CommandError) as cm:
44+
call_command('import', stdout=StringIO())
4545

4646
err = str(cm.exception)
4747
self.assertIn('Please provide at least one data source', err)

0 commit comments

Comments
 (0)