Best Python code snippet using lisa_python
check_funcs.py
Source:check_funcs.py  
...14            return (None)15        number = int(val)16    except ValueError:17        print("{}-error: {} at col: {} - row: {}"18              .format(info.get_info("name"), val, info.get_info('x'),19                      info.get_info('y')))20        return (False)21    except:22        if (info.get_info('e') == 1):23            print("{}-error: {} at col: {} - row: {}"24                  .format(info.get_info("name"), val, info.get_info('x'),25                          info.get_info('y')))26            return (False)27    return (True)28def SALUTION_CHECK(val, info):29    # Check for one of three options30    try:31        if (val == "Mr." or val == "Ms." or val == "Dr." or val == "Mx."):32            return (True)33    except:34        if (info.get_info('e') == 1):35            print("{}-error: {} at col: {} - row: {}"36                  .format(info.get_info("name"), val, info.get_info('x'),37                          info.get_info('y')))38            return (False)39    return (False)40def FIRST_NAME_CHECK(val, info):41    # Just check only letters, first letter uppercase, no space after.42    # ADD: Check for uppercase letter in first letter.43    try:44        if (val is None):45            return (False)46        if (hasNumbers(val) is False and (' ' in val) is False and val[0] != " " or val[len(val) - 1] != " " and val[0].isupper() is True):47            return (True)48    except:49        if (info.get_info('e') == 1):50            print("{}-error: {} at col: {} - row: {}"51                  .format(info.get_info("name"), val, info.get_info('x'),52                          info.get_info('y')))53            return (False)54    return (False)55def MIDDLE_NAME_CHECK(val, info):56    # Focus on skipping57    try:58        if (val is None):59            return (True)60        if (hasNumbers(val) is False):61            return (True)62    except:63        if (info.get_info('e') == 1):64            print("{}-error: {} at col: {} - row: {}"65                  .format(info.get_info("name"), val, info.get_info('x'),66                          info.get_info('y')))67            return (False)68    return (False)69def LAST_NAME_CHECK(val, info):70    # Return true if only letters, no spaces before first or after last word.71    try:72        if (hasNumbers(val) is False and val[0] != " " and val[len(val) - 1] != " "):73            return (True)74    except:75        if (info.get_info('e') == 1):76            print("{}-error: {} at col: {} - row: {}"77                  .format(info.get_info("name"), val, info.get_info('x'),78                          info.get_info('y')))79            return (False)80    return (False)81def SUFFIX_CHECK(val, info):82    # JD, Ed.D, MBA, Esq, Ph.D, M.D, CFP, MA, MPH.83    # Can be a lot dont focvus and skip.84    return (True)85def PARTNER_CHECK(val, info):86    # so the only options are formal and student?87    try:88        if (val == "formal" or val == "student"):89            return (True)90    except:91        if (info.get_info('e') == 1):92            print("{}-error: {} at col: {} - row: {}"93                  .format(info.get_info("name"), val, info.get_info('x'),94                          info.get_info('y')))95            return (False)96    return (False)97def SCHOOL_CHECK(val, info):98    # check for spaces at first & last word, error if blank?99    # Check for uppercase on every word except of's?100    try:101        if (val is None):102            return (False)103        if (val is not None and val != " " and val != ""):104            return (True)105        if (val[0] == " " or val[len(val) - 1] == " "):106            return (False)107    except:108        if (info.get_info('e') == 1):109            print("{}-error: {} at col: {} - row: {}"110                  .format(info.get_info("name"), val, info.get_info('x'),111                          info.get_info('y')))112            return (False)113    return (False)114def INTERNSHIP_CHECK(val, info):115    # Check for spaces at first & last word.116    # Check for uppercase on every word except of's?117    # if blank give error.118    try:119        if (val is None):120            return (False)121        if (val[0] == " " or val[len(val) - 1] == " "):122            return (False)123    except TypeError:124        if (info.get_info('e') == 1):125            print("{}-error: {} at col: {} - row: {}"126                  .format(info.get_info("name"), val, info.get_info('x'),127                          info.get_info('y')))128            pass129    except:130        if (info.get_info('e') == 1):131            print("{}-error: {} at col: {} - row: {}"132                  .format(info.get_info("name"), val, info.get_info('x'),133                          info.get_info('y')))134            return (False)135    return (True)136def INTERNSHIP_TYPE_CHECK(val, info):137    # Check for spaces at first & last word unkless just one word?138    # give error if blank.139    try:140        if (val is None):141            return (False)142        if (val[0] == " " or val[len(val) - 1] == " "):143            return (False)144    except:145        if (info.get_info('e') == 1):146            print("{}-error: {} at col: {} - row: {}"147                  .format(info.get_info("name"), val, info.get_info('x'),148                          info.get_info('y')))149            return (False)150    return (True)151def PLACEMENT_CHECK(val, info):152    # Check for spaces at first & last word, error if blank?153    # give error if blank.154    try:155        if (val is None):156            return (False)157        if (val[0] == " " or val[len(val) - 1] == " "):158            return (False)159    except:160        if (info.get_info('e') == 1):161            print("{}-error: {} at col: {} - row: {}"162                  .format(info.get_info("name"), val, info.get_info('x'),163                          info.get_info('y')))164            return (False)165    return (True)166def PLACEMENT_DATE_CHECK(val, info):167    # Check for only these options and year.168    try:169        value = str(val).split()[0]170        year = int(val.split()[1])171        words = ["Summer", "Fall", "Spring", "Winter"]172        if (value in words):173            return (True)174    except ValueError:175        if (info.get_info('e') == 1):176            print("{}-error: {} at col: {} - row: {}"177                  .format(info.get_info("name"), val, info.get_info('x'),178                          info.get_info('y')))179        return (False)180    except:181        if (info.get_info('e') == 1):182            print("{}-error: {} at col: {} - row: {}"183                  .format(info.get_info("name"), val, info.get_info('x'),184                          info.get_info('y')))185        return (False)186    return (False)187def END_DATE_CHECK(val, info):188    # Ask if only these options otherwise confirm second word is a year.189    try:190        words = ["Summer", "Fall", "Spring", "Winter"]191        value = str(val).split()[0]192        if (val == "Permanent" or value in words):193            return (True)194    except:195        if (info.get_info('e') == 1):196            print("{}-error: {} at col: {} - row: {}"197                  .format(info.get_info("name"), val, info.get_info('x'),198                          info.get_info('y')))199            return (False)200    return (False)201def NEW_SOURCE_CHECK(val, info):202    # only employer and pesa? No other options.203    # make sure is not blank.204    try:205        if (val is None):206            return (False)207        if (val == "employer" or val == "PESA"):208            return (True)209    except:210        if (info.get_info('e') == 1):211            print("{}-error: {} at col: {} - row: {}"212                  .format(info.get_info("name"), val, info.get_info('x'),213                          info.get_info('y')))214            return (False)215    return (False)216def STATUS_CHECK(val, info):217    # only these 4 options otherwise error? if blank give error?218    # make sure is not blank.219    try:220        if (val is None):221            return (False)222        if (val == "citizen" or val == "permanent" or val == "visa" or val == "refugee" or val == "temporary"):223            return (True)224        if (val == "unknown"):225            return (True)226    except:227        if (info.get_info('e') == 1):228            print("{}-error: {} at col: {} - row: {}"229                  .format(info.get_info("name"), val, info.get_info('x'),230                          info.get_info('y')))231            return (False)232    return (False)233def FIRST_GEN_CHECK(val, info):234    # only these 2 options otherwise error? if blank give error.235    try:236        if (val is None):237            return (False)238        if (val == "first" or val == "multiple" or val == "second"):239            return (True)240        if (val == "third"):241            return (True)242    except:243        if (info.get_info('e') == 1):244            print("{}-error: {} at col: {} - row: {}"245                  .format(info.get_info("name"), val, info.get_info('x'),246                          info.get_info('y')))247            return (False)248    return (False)249def INTERNATIONAL_CHECK(val, info):250    # only these 2 options otherwise error?251    try:252        if (val is None):253            return (False)254        if (val == "national" or val == "international"):255            return (True)256    except:257        if (info.get_info('e') == 1):258            print("{}-error: {} at col: {} - row: {}"259                  .format(info.get_info("name"), val, info.get_info('x'),260                          info.get_info('y')))261            return (False)262    return (False)263def GENDER_CHECK(val, info):264    # Give error if none otherwise those 3 options.265    try:266        if (val is None):267            return (False)268        if (val == "Male" or val == "Female" or val == "Non-Binary"):269            return (True)270    except:271        if (info.get_info('e') == 1):272            print("{}-error: {} at col: {} - row: {}"273                  .format(info.get_info("name"), val, info.get_info('x'),274                          info.get_info('y')))275            return (False)276    return (False)277def AGE_CHECK(val, info):278    # Check each number is an int and has format with "to".279    # Check for "under 16" otheriwse verify that cell matches"number to number"280    try:281        if (val is None):282            return (False)283        if (val is not None and val != " "):284            return (True)285    except:286        if (info.get_info('e') == 1):287            print("{}-error: {} at col: {} - row: {}"288                  .format(info.get_info("name"), val, info.get_info('x'),289                          info.get_info('y')))290            return (False)291    return (False)292def ETHNICITY_CHECK(val, info):293    # error if blank294    try:295        if (val is None):296            return (False)297        eth = ["African American", "American Indian / Alaskan Native",298               "Asian", "Filipino", "Hispanic", "Middle Eastern",299               "Multi-Ethnicity", "Other", "Pacific Islander", "Unknown",300               "White", "White Non-Hispanic", "Multi-Ethnic"]301        if (val in eth):302            return (True)303    except:304        if (info.get_info('e') == 1):305            print("{}-error: {} at col: {} - row: {}"306                  .format(info.get_info("name"), val, info.get_info('x'),307                          info.get_info('y')))308            return (False)309    return (False)310def REENTRY_CHECK(val, info):311    # error if blank312    try:313        if (val is None):314            return (False)315        if (val == "clear" or val == "re-entry"):316            return (True)317    except:318        if (info.get_info('e') == 1):319            print("{}-error: {} at col: {} - row: {}"320                  .format(info.get_info("name"), val, info.get_info('x'),321                          info.get_info('y')))322            return (False)323    return (False)324def FOSTER_CHECK(val, info):325    # give error if blank326    try:327        if (val is None):328            return (False)329        if (val == "non-foster" or val == "foster"):330            return (True)331    except:332        if (info.get_info('e') == 1):333            print("{}-error: {} at col: {} - row: {}"334                  .format(info.get_info("name"), val, info.get_info('x'),335                          info.get_info('y')))336            return (False)337    return (False)338def OCCUPATION_CHECK(val, info):339    # Return True if blank otherwise just check spacing at first and last word.340    try:341        if (val is None):342            return (True)343        if (val[0] == " " or val[len(val) - 1] == " "):344            return (False)345    except TypeError:346        print("{}-error: {} at col: {} - row: {}"347                  .format(info.get_info("name"), val, info.get_info('x'),348                          info.get_info('y')))349        pass350    except:351        if (info.get_info('e') == 1):352            print("{}-error: {} at col: {} - row: {}"353                  .format(info.get_info("name"), val, info.get_info('x'),354                          info.get_info('y')))355            return (False)356    return (True)357def COMPANY_CHECK(val, info):358    # Return True if blank Otherwise just check spacing at first and last word.359    try:360        if (val is None):361            return (True)362        if (val[0] == " " or val[len(val) - 1] == " "):363            return (False)364    except:365        if (info.get_info('e') == 1):366            print("{}-error: {} at col: {} - row: {}"367                  .format(info.get_info("name"), val, info.get_info('x'),368                          info.get_info('y')))369            return (False)370    return (True)371def EMAIL_CHECK(val, info):372    # Return True if blank Otherwise if not blank check formatting.373    try:374        pattern = re.compile("^[a-z0-9]+[\._]?[a-z0-9]+[@]\w+[.]\w{2,3}$")375        if (val is None):376            return (True)377        if (pattern.match(val) is None):378            if (val is not None and val != " "):379                return (True)380            return (False)381        else:382            return (True)383    except:384        if (info.get_info('e') == 1):385            print("{}-error: {} at col: {} - row: {}"386                  .format(info.get_info("name"), val, info.get_info('x'),387                          info.get_info('y')))388            return (False)389    return (False)390def WEBSITE_CHECK(val, info):391    # Return True if blank.392    try:393        if (val is None or val != "" and val != " " or val):394            return (True)395    except:396        if (info.get_info('e') == 1):397            print("{}-error: {} at col: {} - row: {}"398                  .format(info.get_info("name"), val, info.get_info('x'),399                          info.get_info('y')))400            return (False)401    return (False)402def PHONE_NUMBER_CHECK(val, info):403    # Return true if blank but if not check format.404    try:405        if (val is None or type(val) != str):406            return (True)407        pattern = re.compile("^(\([0-9]{3}\) |[0-9]{3}-)[0-9]{3}-[0-9]{4}$")408        if (pattern.match(val) is None):409            return (False)410        else:411            return (True)412    except TypeError:413        if (info.get_info('e') == 1):414            print("{}-error: {} at col: {} - row: {}"415                  .format(info.get_info("name"), val, info.get_info('x'),416                          info.get_info('y')))417        pass418    except:419        if (info.get_info('e') == 1):420            print("{}-error: {} at col: {} - row: {}"421                  .format(info.get_info("name"), val, info.get_info('x'),422                          info.get_info('y')))423            return (False)424    return (False)425def PHONE_IGNORE(val, info):426    # pass427    pass428def FIRST_CONTACT_CHECK(val, info):429    # Return false if blank.430    try:431        if (val is None):432            return (False)433        contact = ["Business Event", "MEGA Phase 1", "Political Event",434                   "Professional Event", "PESA"]435        if (val in contact or val != " "):436            return (True)437    except:438        if (info.get_info('e') == 1):439            print("{}-error: {} at col: {} - row: {}"440                  .format(info.get_info("name"), val, info.get_info('x'),441                          info.get_info('y')))442            return (False)443    return (False)444def BEST_PERSON_CHECK(val, info):445    # Return False if blank.446    try:447        if (val is None):448            return (False)449        if (val != " " or val is not None):450            return (True)451    except:452        if (info.get_info('e') == 1):453            print("{}-error: {} at col: {} - row: {}"454                  .format(info.get_info("name"), val, info.get_info('x'),455                          info.get_info('y')))456            return (False)457    return (False)458def ADDRESS_CHECK(val, info):459    # NO RULE JUST SET TO PASS460    return (True)461def SUITE_CHECK(val, info):462    # PASS - add to later463    return (True)464def CITY_CHECK(val, info):465    # Return False if blank or should be N/A (True).466    try:467        if (val is None):468            return (False)469        if (val == "N/A"):470            return (True)471        if (val != " "):472            return (True)473    except:474        if (info.get_info('e') == 1):475            print("{}-error: {} at col: {} - row: {}"476                  .format(info.get_info("name"), val, info.get_info('x'),477                          info.get_info('y')))478            return (False)479    return (False)480def STATE_CHECK(val, info):481    # Return False if blank, return ture if N/A or one of the states.482    try:483        if (val is None):484            return (False)485        states = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DC", "DE", "FL", "GA",486                  "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD",487                  "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ",488                  "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "PR", "RI", "SC",489                  "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"]490        if (val in states or val == "N/A"):491            return (True)492    except:493        if (info.get_info('e') == 1):494            print("{}-error: {} at col: {} - row: {}"495                  .format(info.get_info("name"), val, info.get_info('x'),496                          info.get_info('y')))497        return (False)498    return (False)499def ZIP_CHECK(val, info):500    # Return False if none, unless N/A or zip then check format.501    try:502        if (val == "N/A"):503            return (True)504        if (val is None):505            return (False)506        pattern = re.compile("^[0-9]{5}(?:-[0-9]{4})?$")507        if (pattern.match(str(val)) is None):508            if (val is not None and val != " "):509                return (True)510            return (False)511    except:512        if (info.get_info('e') == 1):513            print("{}-error: {} at col: {} - row: {}"514                  .format(info.get_info("name"), val, info.get_info('x'),515                          info.get_info('y')))516        return (False)517    return (True)518def COUNTRY_CHECK(val, info):519    # Returns true if country is one of three options.520    try:521        if (val is None):522            return (False)523        if (val != "" and (' ' in val) is False or val == "N/A"):524            return (True)525        if (val == "USA" or val == "Republic of Armenia"):526            return (True)527    except:528        if (info.get_info('e') == 1):529            print("{}-error: {} at col: {} - row: {}"530                  .format(info.get_info("name"), val, info.get_info('x'),531                          info.get_info('y')))532        return (False)533    return (False)534def HOMELESS_CHECK(val, info):535    # Returns true for Settled or Homeless.536    try:537        if (val is None):538            return (False)539        if (val == "Settled" or val == "Homeless"):540            return (True)541    except:542        if (info.get_info('e') == 1):543            print("{}-error: {} at col: {} - row: {}"544                  .format(info.get_info("name"), val, info.get_info('x'),545                          info.get_info('y')))546        return (False)547    return (False)548def SOURCE_CHECK(val, info):549    # Return true if blank or one of 3 names.550    try:551        if (val is None):552            return (True)553        if (val == "Joseph Lopez" or val == "John Paul Tabakian"):554            return (True)555        if (val == "Christopher Castillo"):556            return (True)557    except:558        if (info.get_info('e') == 1):559            print("{}-error: {} at col: {} - row: {}"560                  .format(info.get_info("name"), val, info.get_info('x'),561                          info.get_info('y')))562        return (False)563    return (False)564def VET_CHECK(val, info):565    # Return true if blank or one of three options.566    try:567        if (val is None or val == "Marines" or val == "Veteran" or val == "Army" or val == "Navy"):568            return (True)569    except:570        if (info.get_info('e') == 1):571            print("{}-error: {} at col: {} - row: {}"572                  .format(info.get_info("name"), val, info.get_info('x'),573                          info.get_info('y')))574        return (False)...resource.py
Source:resource.py  
...33        }34        self.form_groups.append(description_group)35        if self.entitytypeid == 'HERITAGE_RESOURCE.E18':36            description_group['forms'][:0] = [37                forms.SummaryForm.get_info(), 38                forms.LocationForm.get_info(),39                forms.MeasurementvaluesForm.get_info(),40                forms.Classification1Form.get_info(),                                             41                forms.MeasurementForm.get_info(),42                forms.RelatedFilesForm.get_info(),43                forms.RelatedResourcesForm.get_info(),44                forms.DescriptionForm.get_info(),45                                              46            ]47        elif self.entitytypeid == 'HERITAGE_PLACE.E27':48            description_group['forms'][:0] = [49                forms.AssessmentSummaryForm.get_info(),50                forms.SummaryForm.get_info(),51                forms.LocationForm.get_info(),52                forms.ArchaeologicalAssessmentForm.get_info(),53                forms.ConditionAssessmentForm.get_info(),54                # forms.Classification1Form.get_info(),55                # forms.MeasurementForm.get_info( ),56                 forms.MeasurementvaluesForm.get_info(),57                forms.RelatedFilesForm.get_info(),58                # forms.DesignationForm.get_info(),59                # forms.ManMadeForm.get_info(),60                forms.RelatedResourcesForm.get_info(),61                # forms.DescriptionForm.get_info(),62                # forms.TestWizForm.get_info(),63        64            ]65        66        elif self.entitytypeid == 'HERITAGE_FEATURE.E24':67            description_group['forms'][:0] = [68                forms.AssessmentSummaryForm.get_info(),69                forms.FeatureSummaryForm.get_info(), 70                forms.LocationForm.get_info(),71                forms.MeasurementvaluesForm.get_info(),72                forms.FeatureArchaeologicalAssessmentForm.get_info(),73                forms.ModificationForm.get_info(),74                forms.FeatureConditionAssessmentForm.get_info(),75                forms.RelatedResourcesForm.get_info(),76                forms.RelatedFilesForm.get_info(),77                forms.ManMadeComponentForm.get_info(),78            ]79            80        elif self.entitytypeid == 'HERITAGE_COMPONENT.B2':81            description_group['forms'][:0] = [82                forms.ComponentAssessmentForm.get_info(),83                forms.ComponentClassification.get_info(),84                forms.ComponentLocationForm.get_info(),85                forms.ComponentModificationForm.get_info(),86                forms.MeasurementvaluesForm.get_info(),87                forms.ComponentConditionAssessmentForm.get_info(),88                forms.RelatedFilesForm.get_info(),89                forms.RelatedResourcesForm.get_info(),90            ]91            92        elif self.entitytypeid == 'ACTIVITY.E7':93            description_group['forms'][:0] = [94                forms.ActivitySummaryForm.get_info(),95                forms.DescriptionForm.get_info(),96                forms.LocationForm.get_info(),97                forms.ActivityActionsForm.get_info(),98                forms.ExternalReferenceForm.get_info(),99                forms.RelatedResourcesForm.get_info(),100            ]101     102        elif self.entitytypeid == 'ACTOR.E39':103            description_group['forms'][:0] = [104                forms.ActorSummaryForm.get_info(), 105                forms.DescriptionForm.get_info(),106                forms.RoleForm.get_info(),107                forms.ExternalReferenceForm.get_info(),108                forms.RelatedResourcesForm.get_info(),                109            ]110        elif self.entitytypeid == 'HISTORICAL_EVENT.E5':111            description_group['forms'][:0] = [112                forms.HistoricalEventSummaryForm.get_info(),113                forms.DescriptionForm.get_info(),114                forms.LocationForm.get_info(), 115                forms.PhaseForm.get_info(),116                forms.RelatedResourcesForm.get_info(),117            ]118        elif self.entitytypeid == 'INFORMATION_RESOURCE.E73':119            description_group['forms'][:0] = [120                forms.InformationResourceSummaryForm.get_info(), 121                forms.PublicationForm.get_info(),122                forms.ImageryForm.get_info(),123                forms.CartographyForm.get_info(),124                forms.SharedDataForm.get_info(),125                forms.ExternalReferenceForm.get_info(),126                forms.CoverageForm.get_info(),127                forms.FileUploadForm.get_info(),128                forms.DescriptionForm.get_info(),129                forms.RelatedResourcesForm.get_info(),130            ]131        if self.entityid != '':132            self.form_groups.append({133                'id': 'manage-resource',134                'icon': 'fa-wrench',135                'name': _('Manage Resource'),136                'forms': [137                    forms.EditHistory.get_info(),138                    forms.DeleteResourceForm.get_info()139                ]140            })141            142            143    def get_primary_name(self):144        displayname = super(Resource, self).get_primary_name()145        names = self.get_names()146        if len(names) > 0:147            displayname = names[0].value148        return displayname149    def get_names(self):150        """151        Gets the human readable name to display for entity instances152        """...page.py
Source:page.py  
1from flask import (2    Blueprint, render_template,session,redirect,url_for3)4import json5from automation_of_work_for_stepic.information_processor import InformationsProcessor6from automation_of_work_for_stepic.app.auth import login_required7bp = Blueprint('page', __name__)8get_info=InformationsProcessor()9@bp.route('/progress')10@login_required11def progress():12    get_info = InformationsProcessor()13    #get_info = session.get('processor')14    if get_info:15        students, courses = get_info.get_progress_table()16        return render_template('page/progress.html', students=students, courses=courses)17    else:18        return render_template('error/404.html')19@bp.route('/start')20@login_required21def start():22    get_info = InformationsProcessor()23    #get_info=session.get('processor')24    if get_info:25        loaded, user, config, incorrect=get_info.get_start_page()26        return render_template('page/start.html', loaded=loaded,user=user, config=config, incorrect=incorrect)27    else:28        return render_template('error/404.html')29@bp.route('/students/<int:id>')30@login_required31def student_page(id: int):32    get_info = InformationsProcessor()33    #get_info = session.get('processor')34    if get_info.loaded and id in get_info.students:35        student, courses, Section, Lesson, Step, Grade = get_info.get_student_page(id)36        return render_template('page/student.html', student=student, courses=courses, Section=Section, Lesson=Lesson,37                               Step=Step, Grade=Grade)38    else:39        return render_template('error/404.html')40@bp.route('/courses/<int:id>')41@login_required42def course_page(id: int):43    get_info = InformationsProcessor()44    #get_info = session.get('processor')45    if get_info.loaded and id in get_info.courses:46        students, course, Section, Lesson, Step, Grade = get_info.get_course_page(id)47        return render_template('page/course.html', students=students, course=course, Section=Section, Lesson=Lesson,48                               Step=Step, Grade=Grade)49    else:50        return render_template('error/404.html')51@bp.route('/load')52@login_required53def load():54    get_info = InformationsProcessor()55    get_info.load_new()...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!!
