From d79661c87f4008d41310a0871fa3e56777846dc2 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 19 Oct 2011 02:20:43 +0100 Subject: [PATCH] All unit test modules have a test_ prefix Both for consistency and for test discovery. --- psycopg2.cproj | 10 +++++----- tests/__init__.py | 20 +++++++++---------- tests/{bugX000.py => test_bugX000.py} | 0 tests/{bug_gc.py => test_bug_gc.py} | 0 ...ictcursor.py => test_extras_dictcursor.py} | 0 tests/{types_basic.py => test_types_basic.py} | 0 .../{types_extras.py => test_types_extras.py} | 0 7 files changed, 15 insertions(+), 15 deletions(-) rename tests/{bugX000.py => test_bugX000.py} (100%) rename tests/{bug_gc.py => test_bug_gc.py} (100%) rename tests/{extras_dictcursor.py => test_extras_dictcursor.py} (100%) rename tests/{types_basic.py => test_types_basic.py} (100%) rename tests/{types_extras.py => test_types_extras.py} (100%) diff --git a/psycopg2.cproj b/psycopg2.cproj index b231848f..1640ab1d 100644 --- a/psycopg2.cproj +++ b/psycopg2.cproj @@ -117,13 +117,13 @@ - + - - - + + + @@ -166,7 +166,7 @@ - + diff --git a/tests/__init__.py b/tests/__init__.py index a0575270..1114a950 100755 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -27,17 +27,17 @@ import sys from testconfig import dsn from testutils import unittest -import bug_gc -import bugX000 -import extras_dictcursor +import test_bug_gc +import test_bugX000 +import test_extras_dictcursor import test_dates import test_psycopg2_dbapi20 import test_quote import test_connection import test_cursor import test_transaction -import types_basic -import types_extras +import test_types_basic +import test_types_extras import test_lobject import test_copy import test_notify @@ -58,17 +58,17 @@ def test_suite(): cnn.close() suite = unittest.TestSuite() - suite.addTest(bug_gc.test_suite()) - suite.addTest(bugX000.test_suite()) - suite.addTest(extras_dictcursor.test_suite()) + suite.addTest(test_bug_gc.test_suite()) + suite.addTest(test_bugX000.test_suite()) + suite.addTest(test_extras_dictcursor.test_suite()) suite.addTest(test_dates.test_suite()) suite.addTest(test_psycopg2_dbapi20.test_suite()) suite.addTest(test_quote.test_suite()) suite.addTest(test_connection.test_suite()) suite.addTest(test_cursor.test_suite()) suite.addTest(test_transaction.test_suite()) - suite.addTest(types_basic.test_suite()) - suite.addTest(types_extras.test_suite()) + suite.addTest(test_types_basic.test_suite()) + suite.addTest(test_types_extras.test_suite()) suite.addTest(test_lobject.test_suite()) suite.addTest(test_copy.test_suite()) suite.addTest(test_notify.test_suite()) diff --git a/tests/bugX000.py b/tests/test_bugX000.py similarity index 100% rename from tests/bugX000.py rename to tests/test_bugX000.py diff --git a/tests/bug_gc.py b/tests/test_bug_gc.py similarity index 100% rename from tests/bug_gc.py rename to tests/test_bug_gc.py diff --git a/tests/extras_dictcursor.py b/tests/test_extras_dictcursor.py similarity index 100% rename from tests/extras_dictcursor.py rename to tests/test_extras_dictcursor.py diff --git a/tests/types_basic.py b/tests/test_types_basic.py similarity index 100% rename from tests/types_basic.py rename to tests/test_types_basic.py diff --git a/tests/types_extras.py b/tests/test_types_extras.py similarity index 100% rename from tests/types_extras.py rename to tests/test_types_extras.py