summaryrefslogtreecommitdiff
path: root/pytest.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2007-04-12 11:01:22 +0200
committerSylvain <syt@logilab.fr>2007-04-12 11:01:22 +0200
commit760b048b18ef8a1615bb810c44f9a9789e695c47 (patch)
tree789ba3ab8c7ddfbdd9b2693fb7c35c6491e8e3c3 /pytest.py
parent2b195d2a92b7fe433aa95a2e33737a638df3e69c (diff)
downloadlogilab-common-760b048b18ef8a1615bb810c44f9a9789e695c47.tar.gz
pytest run smoke tests
Diffstat (limited to 'pytest.py')
-rw-r--r--pytest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pytest.py b/pytest.py
index 8a8d7ae..df55cec 100644
--- a/pytest.py
+++ b/pytest.py
@@ -94,7 +94,9 @@ class GlobalTestReport(object):
def this_is_a_testfile(filename):
"""returns True if `filename` seems to be a test file"""
filename = osp.basename(filename)
- return ((filename.startswith('unittest') or filename.startswith('test'))
+ return ((filename.startswith('unittest')
+ or filename.startswith('test')
+ or filename.startswith('smoketest'))
and filename.endswith('.py'))
def testall(exitfirst=False):