
import sys
import nose
import warnings

from nose_exclude import NoseExclude

warnings.filterwarnings("ignore", category=DeprecationWarning)

if __name__ == "__main__":
    from maya import standalone
    standalone.initialize()

    argv = sys.argv[:]
    argv.extend([

        # Sometimes, files from Windows accessed
        # from Linux cause the executable flag to be
        # set, and Nose has an aversion to these
        # per default.
        "--exe",

        "--verbose",
        "--with-doctest",

        "--with-coverage",
        "--cover-html",
        "--cover-tests",
        "--cover-erase",

        "--exclude-dir=mindbender/nuke",
        "--exclude-dir=mindbender/houdini",
        "--exclude-dir=mindbender/schema",
        "--exclude-dir=mindbender/plugins",

        # We can expect any vendors to
        # be well tested beforehand.
        "--exclude-dir=mindbender/vendor",
    ])

    nose.main(argv=argv,
              addplugins=[NoseExclude()])


import sys
import nose
import logging
import warnings

from nose_exclude import NoseExclude

warnings.filterwarnings("ignore", category=DeprecationWarning)

if __name__ == "__main__":
    from maya import standalone
    standalone.initialize()

    log = logging.getLogger()

    # Discard default Maya logging handler
    log.handlers[:] = []

    argv = sys.argv[:]
    argv.extend([

        # Sometimes, files from Windows accessed
        # from Linux cause the executable flag to be
        # set, and Nose has an aversion to these
        # per default.
        "--exe",

        "--verbose",
        "--with-doctest",

        "--with-coverage",
        "--cover-html",
        "--cover-tests",
        "--cover-erase",

        "--exclude-dir=mindbender/nuke",
        "--exclude-dir=mindbender/houdini",
        "--exclude-dir=mindbender/schema",
        "--exclude-dir=mindbender/plugins",

        # We can expect any vendors to
        # be well tested beforehand.
        "--exclude-dir=mindbender/vendor",
    ])

    nose.main(argv=argv,
              addplugins=[NoseExclude()])

Enhance readability of test output
Enhance readability of test output

  
  import sys
  import nose
+ import logging
  import warnings
  
  from nose_exclude import NoseExclude
  
  warnings.filterwarnings("ignore", category=DeprecationWarning)
  
  if __name__ == "__main__":
      from maya import standalone
      standalone.initialize()
+ 
+     log = logging.getLogger()
+ 
+     # Discard default Maya logging handler
+     log.handlers[:] = []
  
      argv = sys.argv[:]
      argv.extend([
  
          # Sometimes, files from Windows accessed
          # from Linux cause the executable flag to be
          # set, and Nose has an aversion to these
          # per default.
          "--exe",
  
          "--verbose",
          "--with-doctest",
  
          "--with-coverage",
          "--cover-html",
          "--cover-tests",
          "--cover-erase",
  
          "--exclude-dir=mindbender/nuke",
          "--exclude-dir=mindbender/houdini",
          "--exclude-dir=mindbender/schema",
          "--exclude-dir=mindbender/plugins",
  
          # We can expect any vendors to
          # be well tested beforehand.
          "--exclude-dir=mindbender/vendor",
      ])
  
      nose.main(argv=argv,
                addplugins=[NoseExclude()])
  
Enhance readability of test output
## Code Before:

import sys
import nose
import warnings

from nose_exclude import NoseExclude

warnings.filterwarnings("ignore", category=DeprecationWarning)

if __name__ == "__main__":
    from maya import standalone
    standalone.initialize()

    argv = sys.argv[:]
    argv.extend([

        # Sometimes, files from Windows accessed
        # from Linux cause the executable flag to be
        # set, and Nose has an aversion to these
        # per default.
        "--exe",

        "--verbose",
        "--with-doctest",

        "--with-coverage",
        "--cover-html",
        "--cover-tests",
        "--cover-erase",

        "--exclude-dir=mindbender/nuke",
        "--exclude-dir=mindbender/houdini",
        "--exclude-dir=mindbender/schema",
        "--exclude-dir=mindbender/plugins",

        # We can expect any vendors to
        # be well tested beforehand.
        "--exclude-dir=mindbender/vendor",
    ])

    nose.main(argv=argv,
              addplugins=[NoseExclude()])

## Instruction:
Enhance readability of test output
## Code After:

import sys
import nose
import logging
import warnings

from nose_exclude import NoseExclude

warnings.filterwarnings("ignore", category=DeprecationWarning)

if __name__ == "__main__":
    from maya import standalone
    standalone.initialize()

    log = logging.getLogger()

    # Discard default Maya logging handler
    log.handlers[:] = []

    argv = sys.argv[:]
    argv.extend([

        # Sometimes, files from Windows accessed
        # from Linux cause the executable flag to be
        # set, and Nose has an aversion to these
        # per default.
        "--exe",

        "--verbose",
        "--with-doctest",

        "--with-coverage",
        "--cover-html",
        "--cover-tests",
        "--cover-erase",

        "--exclude-dir=mindbender/nuke",
        "--exclude-dir=mindbender/houdini",
        "--exclude-dir=mindbender/schema",
        "--exclude-dir=mindbender/plugins",

        # We can expect any vendors to
        # be well tested beforehand.
        "--exclude-dir=mindbender/vendor",
    ])

    nose.main(argv=argv,
              addplugins=[NoseExclude()])
