@pytest.fixture(scope=u'module')
def dummy_input(request, tmpdir_factory):
 input_path = tmpdir_factory.mktemp(u'input_data').join(u'datasink_test_s3.txt')
 input_path.write_binary('ABCD1234')
 return str(input_path)

@ pytest . fixture ( scope = u'module' ) def dummy_input ( request , tmpdir_factory ) : input_path = tmpdir_factory . mktemp ( u'input_data' ) . join ( u'datasink_test_s3.txt' ) input_path . write_binary ( 'ABCD1234' ) return str ( input_path )
function to create a dummy file .