<s> from os import close , unlink <EOL> from random import random <EOL> from tempfile import mkstemp <EOL> import pytest <EOL> from bepasty . app import create_app , create_storage <EOL> @ pytest . yield_fixture ( scope = '<STR_LIT>' ) <EOL> def app ( request ) : <EOL> """<STR_LIT>""" <EOL> app = create_app ( ) <EOL> yield app <EOL> unlink ( app . config [ '<STR_LIT>' ] ) <EOL> @ pytest . yield_fixture ( scope = '<STR_LIT>' ) <EOL> def testclient ( request , app ) : <EOL> """<STR_LIT>""" <EOL> db_file , app . config [ '<STR_LIT>' ] = mkstemp ( ) <EOL> app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> app . config [ '<STR_LIT>' ] = str ( random ( ) ) <EOL> app . config [ '<STR_LIT>' ] = { <EOL> '<STR_LIT:l>' : '<STR_LIT:list>' , <EOL> '<STR_LIT:c>' : '<STR_LIT>' , <EOL> '<STR_LIT:r>' : '<STR_LIT>' , <EOL> '<STR_LIT:d>' : '<STR_LIT>' , <EOL> '<STR_LIT:a>' : '<STR_LIT>' <EOL> } <EOL> yield app . test_client ( ) <EOL> close ( db_file ) </s>
