Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Display which backend is in use when running the test suite

  • Loading branch information...
commit fe16373a5b4400c3d747bd4648131f4f1ec13d40 1 parent 92b28dd
@coleifer authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 runtests.py
View
4 runtests.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+import os
import sys
import unittest
@@ -7,6 +8,9 @@
import tests
def runtests(*test_args):
+ backend = os.environ.get('PEEWEE_TEST_BACKEND') or 'sqlite'
+ print 'RUNNING PEEWEE TESTS WITH [%s]' % backend
+ print '=============================================='
suite = unittest.TestLoader().loadTestsFromModule(tests)
result = unittest.TextTestRunner(verbosity=2).run(suite)
if result.failures:
Please sign in to comment.
Something went wrong with that request. Please try again.