Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

teardown module pytest

import pytest

@pytest.fixture(scope="session")
    def my_setup(request):
        print '
Doing setup'
        def fin():
            print ("
Doing teardown")
        request.addfinalizer(fin)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #teardown #module #pytest
ADD COMMENT
Topic
Name
7+9 =