bmc/grizzled-python

Test package directories missing __init__.py files

Opened this issue · 0 comments

The following test directories are missing __init__.py files:

  • grizzled-python/test/misc
  • grizzled-python/test/net
  • grizzled-python/test/net/ftp

This causes the tests contained within to be omitted from a nose test run:

$ nosetests -v
test.collections.TestLRUDict.TestLRUDict.test1 ... ok
test.collections.TestLRUDict.TestLRUDict.testBig ... ok
test.config.TestConfiguration.TestParser.testBadSubstitution ... ok
test.config.TestConfiguration.TestParser.testInclude ... ok
test.config.TestConfiguration.TestParser.testOrdering ... ok
test.config.TestConfiguration.TestParser.testSubstitute1 ... ok
test.config.TestConfiguration.TestParser.testSubstitute2 ... ok
test.file.Test.TestFilePackage.testRecursivelyRemove ... ok
test.file.Test.TestFilePackage.testTouch ... ok
test.file.Test.TestFilePackage.testUnlinkQuietly ... ok
test.file.TestEglob.TestEglob.testPyFiles ... ok
test.file.TestEglob.TestEglob.testReadMes ... ok
test.file.TestEglob.TestEglob.testTextFiles ... ok
test.file.TestEglob.TestEglob.testTopLevelFiles ... ok
test.io.TestPushback.TestPushback.testPushback ... ok
test.system.Test.TestSys.test_class_for_name ... ok
test.system.Test.TestSys.test_current_version ... ok
test.system.Test.TestSys.test_version_conversions('2.5.1', 33882608) ... ok
test.system.Test.TestSys.test_version_conversions('1.5', 17105136) ... ok
test.system.Test.TestSys.test_version_conversions('2.6', 33947888) ... ok
test.system.Test.TestSys.test_version_conversions('2.4.3', 33817584) ... ok
test.text.TestStr2Bool.TestStr2Bool.testBadStrings ... ok
test.text.TestStr2Bool.TestStr2Bool.testGoodStrings ... ok
test.TestProxy.TestProxyPackage.test_forward_all ... ok
test.TestProxy.TestProxyPackage.test_forward_all_but_name ... ok
test.TestProxy.TestProxyPackage.test_forward_all_but_name_mode ... ok

----------------------------------------------------------------------
Ran 26 tests in 0.080s

OK

Notably, the test/net/ftp/TestFTPListParse.py test is currently failing, related to an unresolved reference to the Enum type referenced in #5

======================================================================
ERROR: Failure: NameError (name 'Enum' is not defined)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/local/google/home/mmcdonald/grizzled-python/test/net/ftp/TestFTPListParse.py", line 13, in <module>
    from grizzled.net.ftp.parse import *
  File "/usr/local/google/home/mmcdonald/grizzled-python/grizzled/net/ftp/parse.py", line 70, in <module>
    MTIME_TYPE = Enum('UNKNOWN', 'LOCAL', 'REMOTE_MINUTE', 'REMOTE_DAY')
NameError: name 'Enum' is not defined