Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pytest using tempfile

@pytest.fixture
def my_filepath(self, tmpdir):
    return tmpdir.mkdir("sub").join("testCurrentTicketCount.txt")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pytest #tempfile
ADD COMMENT
Topic
Name
1+1 =