Skip to content

Commit

Permalink
use pytest in setuptools (sonic-net#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored Mar 22, 2019
1 parent 7030c97 commit 1b734f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[aliases]
test=pytest
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@

import glob
from setuptools import setup
import unittest

def get_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('sonic-utilities-tests', pattern='*.py')
return test_suite

setup(
name='sonic-utilities',
Expand Down Expand Up @@ -125,7 +119,11 @@ def get_test_suite():
'click',
'natsort'
],
setup_requires= [
'pytest-runner'
],
tests_require = [
'pytest',
'mock>=2.0.0',
'mockredispy>=2.9.3'
],
Expand Down

0 comments on commit 1b734f1

Please sign in to comment.