def tst_run_time_test(): return shell('date')
def ocean_connect_test(): return shell('python manage.py ocean console git status')
def vc_status_test(): return shell('python manage.py vc status')
def tst_files_test(): return shell('ls -l test')
def list_processes(args=[]): text = shell('ps -ef') for pattern in args: text = match_pattern(text, pattern) return text
def django_settings_test(): return shell('cat hammer/settings.py')
def django_webserver_test(): if is_server(): return shell('cat hammer/wsgi.py /etc/systemd/system/gunicorn.service /etc/nginx/sites-available/sensei') else: config = shell('cat hammer/wsgi.py hammer/config/gunicorn.conf hammer/config/nginx.conf') return '%s is not the Server. Configuration is not active. \n\n%s' % (hostname(), config)
def django_pipenv_test(): return shell('pip list')
def django_python_path_test(): return shell('which python')
def django_python_version_test(): return shell('python --version')
def django_hammer_test(): return shell('ls -l hammer|grep -v sensei.db')
def system_files_test(): return shell('ls -l|grep -v hammer') + shell('pwd')