This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this in your_app/models.py | |
def suite(): | |
"""Django test discovery.""" | |
import nose | |
import unittest | |
path = os.path.join(os.path.dirname(__file__), 'tests') | |
suite = unittest.TestSuite() | |
suite.addTests(nose.loader.TestLoader().loadTestsFromDir(path)) | |
return suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -m smtpd -n -c DebuggingServer localhost:1025 |