grim/pyscovery

53443d9bc5c5
Parents 125cc32415f6
Children 3c9dc9e02d0f
start of renaming the project to pyscovery
  • +1 -1
    .project
  • +2 -2
    .pydevproject
  • +13 -13
    tests/tests.py
  • --- a/.project Sat Mar 23 15:51:06 2013 -0500
    +++ b/.project Fri Mar 29 01:26:40 2013 -0500
    @@ -1,6 +1,6 @@
    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
    - <name>pyplugin</name>
    + <name>pyscovery</name>
    <comment></comment>
    <projects>
    </projects>
    --- a/.pydevproject Sat Mar 23 15:51:06 2013 -0500
    +++ b/.pydevproject Fri Mar 29 01:26:40 2013 -0500
    @@ -3,8 +3,8 @@
    <pydev_project>
    <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
    -<path>/pyplugin/src</path>
    -<path>/pyplugin/tests</path>
    +<path>/pyscovery/src</path>
    +<path>/pyscovery/tests</path>
    </pydev_pathproperty>
    <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
    <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
    --- a/tests/tests.py Sat Mar 23 15:51:06 2013 -0500
    +++ b/tests/tests.py Fri Mar 29 01:26:40 2013 -0500
    @@ -24,7 +24,7 @@
    import pyplugin
    -def test_module(test, module, count, recurse=False):
    +def _test_module(test, module, count, recurse=False):
    """
    Given a module, test that we find count plugins
    """
    @@ -38,7 +38,7 @@
    test.assertEqual(len(found), count, 'plugins found: {}'.format(found))
    -def test_module_count(test, count):
    +def _test_module_count(test, count):
    """
    Asserts if the number of paths doesn't match count
    """
    @@ -68,7 +68,7 @@
    def tearDown(self): # pylint:disable-msg=C0103
    - test_module_count(self, 0)
    + _test_module_count(self, 0)
    pyplugin.clear_modules()
    @@ -78,7 +78,7 @@
    """
    pyplugin.add_module(TestModules.module)
    - test_module_count(self, 1)
    + _test_module_count(self, 1)
    pyplugin.remove_module(TestModules.module)
    @@ -89,7 +89,7 @@
    pyplugin.add_module(TestModules.module)
    pyplugin.add_module(TestModules.module)
    - test_module_count(self, 1)
    + _test_module_count(self, 1)
    pyplugin.remove_module(TestModules.module)
    @@ -110,10 +110,10 @@
    second = '{}.1'.format(TestModules.module)
    pyplugin.add_module(TestModules.module)
    - test_module_count(self, 1)
    + _test_module_count(self, 1)
    pyplugin.add_module(second)
    - test_module_count(self, 2)
    + _test_module_count(self, 2)
    pyplugin.remove_module(TestModules.module)
    pyplugin.remove_module(second)
    @@ -187,17 +187,17 @@
    def test_single(self):
    """ Test a module with a single plugin """
    - test_module(self, 'modules.single', 1)
    + _test_module(self, 'modules.single', 1)
    def test_multiple(self):
    """ Test a module with multiple plugins """
    - test_module(self, 'modules.multiple', 2)
    + _test_module(self, 'modules.multiple', 2)
    def test_mixed(self):
    """ Test a module with more than just plugins """
    - test_module(self, 'modules.mixed', 2)
    + _test_module(self, 'modules.mixed', 2)
    class TestPackage(unittest.TestCase): # pylint:disable-msg=R0904
    @@ -213,15 +213,15 @@
    def test_package_without_recurse(self):
    """ Test a package without recursion """
    - test_module(self, 'modules', 0)
    + _test_module(self, 'modules', 0)
    def test_package_recursion(self):
    """ Test a package with recursion """
    - test_module(self, 'modules.deep', 2, recurse=True)
    + _test_module(self, 'modules.deep', 2, recurse=True)
    def test_package_deep_recursion(self):
    """ Test a package with recursion """
    - test_module(self, 'modules', 7, recurse=True)
    + _test_module(self, 'modules', 7, recurse=True)