Best Python code snippet using molecule_python
models.py
Source:models.py
...3"""Ñмена диÑÑекÑоÑи Ð´Ð»Ñ ÐºÐ¾ÑÑекÑной ÑабоÑÑ Ð¿ÑоекÑа"""4if __name__ == '__main__':5 from os.path import split as os_split6 import sys7 sys.path += [os_split(os_split(os_split(os_split(__file__)[0])[0])[0])[0]]8import os9from datetime import date10from datetime import time11from datetime import datetime12from pony.orm import *13from app.db.db_base_func import AddArrtInDbClass14from app.settings.config import *15db = Database()16pony.options.CUT_TRACEBACK = False17class Timetable(db.Entity):18 id = PrimaryKey(int, auto=True)19 subject = Optional('Subject')20 number_week = Optional(int)21 weekday = Optional(int)...
operation_system.py
Source:operation_system.py
1import re2def find_os(cetizen_row,danawa_row,namu_row):3 #ì´ìì²´ì 4 # ìëë¡ì´ë, iOS ì¤ ìµì ë²ì ë§ ë¨ê¸°ê¸° (UI, ì¼ì±,LG,ìµí°ë¨¸ì¤ë± ìì²´ì¶ê°OSë ìëµ)5 os = ""6 if len(cetizen_row) == 1:7 if cetizen_row.iloc[0]['sc_os'] is not None:8 os = re.sub(('ì¼ì±.*|ìµí°ë¨¸ì¤.*'),"",cetizen_row.iloc[0]['sc_os'])9 os_split = os.split("|")10 os_split = re.search('[0-9.]+',os_split[-1]).group()11 if os.find("iOS") != -1:12 os = 'iOS ' + os_split13 elif os.find("ìëë¡ì´ë") != -1:14 os = 'Android ' + os_split15 if len(danawa_row) == 1 and os == "":16 if danawa_row.iloc[0]['sd_os'] is not None:17 os = danawa_row.iloc[0]['sd_os']18 os_split = os.split("|")19 os_split = re.search('[0-9.]+',os_split[-1]).group()20 if os.find("iOS") != -1:21 os = 'iOS ' + os_split22 elif os.find("ìëë¡ì´ë") != -1:23 os = 'Android ' + os_split24 if len(namu_row) == 1 and os == "":25 if namu_row.iloc[0]['sn_os'] is not None:26 os = re.sub(('ì¼ì±.*|ìµí°ë¨¸ì¤.*|Samsung.*|LG.*'),"",namu_row.iloc[0]['sn_os'])27 os_split = os.split("|")28 os_split = re.search('[0-9.]+',os_split[-1]).group()29 if os.find("iOS") != -1:30 os = 'iOS ' + os_split31 elif os.find("ìëë¡ì´ë") != -1:32 os = 'Android ' + os_split...
make.py
Source:make.py
1import subprocess, sys23if sys.platform.startswith("win"):4 os_split = ";";5else:6 os_split = ":";78libaries = list();9libaries.append("-classpath \"." + os_split);10libaries.append("../../../../lib/servlet-api.jar" + os_split);11libaries.append("../../../../lib/smtp.jar" + os_split);12libaries.append("../../../../lib/jsp-api.jar" + os_split);13libaries.append("\" ");1415String = "javac ";16for i in range(0, len(libaries)):17 String += libaries[i];18String += "*.java";1920proc = subprocess.Popen(String, shell=True)
...
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!