From 5c537e244d136ebf863bb93a16223aec67c9fe70 Mon Sep 17 00:00:00 2001 From: winhamwr Date: Mon, 21 Dec 2009 23:37:18 +0800 Subject: [PATCH] Changed the test directory to tests. --- setup.py | 14 ++++++++++---- sphinxtogithub/{test => tests}/__init__.py | 0 sphinxtogithub/{test => tests}/directoryhandler.py | 0 sphinxtogithub/{test => tests}/filehandler.py | 0 sphinxtogithub/{test => tests}/renamer.py | 0 sphinxtogithub/{test => tests}/replacer.py | 0 6 files changed, 10 insertions(+), 4 deletions(-) rename sphinxtogithub/{test => tests}/__init__.py (100%) rename sphinxtogithub/{test => tests}/directoryhandler.py (100%) rename sphinxtogithub/{test => tests}/filehandler.py (100%) rename sphinxtogithub/{test => tests}/renamer.py (100%) rename sphinxtogithub/{test => tests}/replacer.py (100%) diff --git a/setup.py b/setup.py index f6fb430..ed63dba 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,12 @@ except ImportError: from setuptools import setup, find_packages, Command import sphinxtogithub +from sphinxtogithub.tests import ( + filehandler, + directoryhandler, + replacer, + renamer +) class RunTests(Command): description = "Run the sphinxtogithub test suite." @@ -25,10 +31,10 @@ class RunTests(Command): def run(self): suites = [ - sphinxtogithub.test.filehandler.testSuite(), - sphinxtogithub.test.directoryhandler.testSuite(), - sphinxtogithub.test.replacer.testSuite(), - sphinxtogithub.test.renamer.testSuite(), + filehandler.testSuite(), + directoryhandler.testSuite(), + replacer.testSuite(), + renamer.testSuite(), ] suite = unittest.TestSuite(suites) diff --git a/sphinxtogithub/test/__init__.py b/sphinxtogithub/tests/__init__.py similarity index 100% rename from sphinxtogithub/test/__init__.py rename to sphinxtogithub/tests/__init__.py diff --git a/sphinxtogithub/test/directoryhandler.py b/sphinxtogithub/tests/directoryhandler.py similarity index 100% rename from sphinxtogithub/test/directoryhandler.py rename to sphinxtogithub/tests/directoryhandler.py diff --git a/sphinxtogithub/test/filehandler.py b/sphinxtogithub/tests/filehandler.py similarity index 100% rename from sphinxtogithub/test/filehandler.py rename to sphinxtogithub/tests/filehandler.py diff --git a/sphinxtogithub/test/renamer.py b/sphinxtogithub/tests/renamer.py similarity index 100% rename from sphinxtogithub/test/renamer.py rename to sphinxtogithub/tests/renamer.py diff --git a/sphinxtogithub/test/replacer.py b/sphinxtogithub/tests/replacer.py similarity index 100% rename from sphinxtogithub/test/replacer.py rename to sphinxtogithub/tests/replacer.py