import os
import unittest


def suite():
    test_dir = os.path.dirname(__file__)
    return unittest.TestLoader().discover(test_dir, )

test_suite = suite()


if __name__ == '__main__':
    unittest.main(defaultTest='suite')

import os
import unittest

from Orange.widgets.tests import test_settings, test_setting_provider


def suite():
    test_dir = os.path.dirname(__file__)
    return unittest.TestSuite([
        unittest.TestLoader().discover(test_dir),
        unittest.TestLoader().loadTestsFromModule(test_settings),
        unittest.TestLoader().loadTestsFromModule(test_setting_provider),
    ])


test_suite = suite()


if __name__ == '__main__':
    unittest.main(defaultTest='suite')

Test settings when setup.py test is run.
Test settings when setup.py test is run.

  import os
  import unittest
+ 
+ from Orange.widgets.tests import test_settings, test_setting_provider
  
  
  def suite():
      test_dir = os.path.dirname(__file__)
+     return unittest.TestSuite([
-     return unittest.TestLoader().discover(test_dir, )
+         unittest.TestLoader().discover(test_dir),
+         unittest.TestLoader().loadTestsFromModule(test_settings),
+         unittest.TestLoader().loadTestsFromModule(test_setting_provider),
+     ])
+ 
  
  test_suite = suite()
  
  
  if __name__ == '__main__':
      unittest.main(defaultTest='suite')
  
Test settings when setup.py test is run.
## Code Before:
import os
import unittest


def suite():
    test_dir = os.path.dirname(__file__)
    return unittest.TestLoader().discover(test_dir, )

test_suite = suite()


if __name__ == '__main__':
    unittest.main(defaultTest='suite')

## Instruction:
Test settings when setup.py test is run.
## Code After:
import os
import unittest

from Orange.widgets.tests import test_settings, test_setting_provider


def suite():
    test_dir = os.path.dirname(__file__)
    return unittest.TestSuite([
        unittest.TestLoader().discover(test_dir),
        unittest.TestLoader().loadTestsFromModule(test_settings),
        unittest.TestLoader().loadTestsFromModule(test_setting_provider),
    ])


test_suite = suite()


if __name__ == '__main__':
    unittest.main(defaultTest='suite')
