Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    nose-pathmunge 0.1.2

    Download button

    No screenshots available
    Downloads: 393  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jesse Noller | More programs
    The Apache License 2.0 / FREE
    May 20th, 2009, 15:56 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    nose-pathmunge description

    Add additional directories to sys.path for nose

    nose-pathmunge is a nose plugin which provides a method to add directories to the sys.path of nose, which is inherited by the tests running within nose.

    This itch stems from in many of my own cases, the need to add modules to a given run (dependencies) that I don't want to install because they're synced from a source control system, and change frequently.

    This plugin is extremely simple. It's meant to be.

    Usage:

    Usage is simple - install the package, and then execute nosetests like this:

    nosetests --with-path=/home/jesse/src --with-path=/other/dir

    Remember the rules when appending directories to your path - you should add the directory above a module - not the module directory itself, and there needs to be a valid __init__.py file. For example, the following project layout in subversion:

    myproj/
     src/
     mymodule/
     __init__.py
     foobar.py


    You would add this like this:

    nosetests --with-path=/home/jesse/src/myproj/src

    This would add mymodule/... to the sys.path for the tests to be able to import.

    Command line options

    After it is installed, the plugin adds the following command line flags to nosetests:

    --with-path=TESTCONFIG Additional directories to add to the nose sys.path
     [NOSE_ADDITIONAL_PATHS]


    You can pass in as many paths as you like. I suggest 3, as that's a pleasant number.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Fix PyPI issues; fix easy_install(ability)

      


    TAGS:

    PyPI issues | nose plugin | Python library | PyPI | issues | Python

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM