Skip to content

Commit c32f3e9

Browse files
committed
approach to run 'nox' is changed. Now there aren't any default sessions
1 parent e7c5f86 commit c32f3e9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

noxfile.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
'4.2',
1919
]
2020

21-
nox.options.sessions = ['unittest', 'flake8']
22-
2321

2422
@nox.session
2523
def dev(session: nox.Session) -> None:
@@ -32,7 +30,7 @@ def dev(session: nox.Session) -> None:
3230
session.run(python, '-m', 'pip', 'install', '-r', 'requirements.dev.txt', external=True)
3331

3432

35-
@nox.session(name='python', python=PYTHON_VERSIONS, tags=['unittests'])
33+
@nox.session(python=PYTHON_VERSIONS, tags=['unittests'])
3634
@nox.parametrize('django', DJANGO_VERSIONS)
3735
def unittest(session, django):
3836
major, minor = map(lambda x: int(x), django.split('.'))
@@ -41,7 +39,7 @@ def unittest(session, django):
4139
if django == '3.2':
4240
session.install('django-admin-sortable2==1.0.4')
4341

44-
session.install('-r requirements.test.txt')
42+
session.install('-r', 'requirements.test.txt')
4543

4644
session.env['DJANGO_SETTINGS_MODULE'] = 'sites.test.settings'
4745
session.run('py.test', 'tests')

0 commit comments

Comments
 (0)