Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Quality Assurance and Testing

    pytest-marks 0.3

    Download button

    No screenshots available
    Downloads: 106  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



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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