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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Quality Assurance and Testing

    pytest-marks 0.3

    Download button

    No screenshots available
    Downloads: 170  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Adam Goucher | More programs
    GPL / FREE
    February 15th, 2012, 01:24 GMT
    ROOT / Programming / Quality Assurance and Testing

     Read user reviews (0)  Refer to a friend  Subscribe

    pytest-marks description

    Pytest Marks module

    The ability to set 'marks' on py.test test methods is pretty cool.

        @pytest.mark.red
        def some_test_method(self):
            # some check-y stuff


    But if you have a half dozen marks that you want to put on a method, it gets kinda yucky.

        @pytest.mark.red
        @pytest.mark.green
        @pytest.mark.blue
        @pytest.mark.black
        @pytest.mark.orange
        @pytest.mark.pink
        def some_test_method(self):
            # some check-y stuff


    What would be nice is if you could apply them all in a single decorator.

        @pytest.marks('red', 'green', 'blue', 'black', 'orange', 'pink')
        def some_test_method(self):
            # some check-y stuff


    Well, now you can, with the pytest-marks module.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Pytest marks | Python library | test methods | Pytest | marks | library

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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