How to use _get_files method in autotest

Best Python code snippet using autotest_python

setup.py

Source:setup.py Github

copy

Full Screen

...11 fe_dir = 'frontend'12else:13 fe_dir = '.'14# TODO: handle the client directory15def _get_files(path):16 '''17 Given a path, return all the files in there to package18 '''19 flist = []20 for root, _, files in sorted(os.walk(path)):21 for name in files:22 fullname = os.path.join(root, name)23 flist.append(fullname)24 return flist25def get_file_list():26 # Some stuff is too hard to package. just grab every file in these directories27 # and call it a day. we can clean up some other time28 pd_filelist = []29 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'client')))30 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'afe', 'doctests')))31 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'afe', 'fixtures')))32 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'afe', 'migrations')))33 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'afe', 'templates')))34 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'tko', 'fixtures')))35 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'tko', 'migrations')))36 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'tko', 'sql')))37 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'static')))38 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'templates')))39 pd_filelist.extend(_get_files(os.path.join(fe_dir, 'tko', 'preconfigs')))40 pd_filelist.extend([os.path.join(fe_dir, 'frontend.wsgi')])41 return pd_filelist42def get_package_dir():43 return {'autotest.frontend': fe_dir}44def get_package_data():45 return {'autotest.frontend': get_file_list()}46def get_scripts():47 return [os.path.join(fe_dir, 'autotest-manage-rpc-server')]48def get_packages():49 return ['autotest.frontend.afe',50 'autotest.frontend.afe.feeds',51 'autotest.frontend.afe.json_rpc',52 'autotest.frontend.db',53 'autotest.frontend.db.backends',...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run autotest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful