(msg=None)
| 25 | |
| 26 | |
| 27 | def invalid_run_command(msg=None): |
| 28 | exp = " ** mkdir **\n\n" |
| 29 | exp += " Usage:\n" |
| 30 | exp += " seleniumbase mkdir [DIRECTORY] [OPTIONS]\n" |
| 31 | exp += " OR sbase mkdir [DIRECTORY] [OPTIONS]\n" |
| 32 | exp += " Example:\n" |
| 33 | exp += " sbase mkdir ui_tests\n" |
| 34 | exp += " Options:\n" |
| 35 | exp += " -b / --basic (Only config files. No tests added.)\n" |
| 36 | exp += " --gha (Include GitHub Actions YML with defaults.)\n" |
| 37 | exp += " Output:\n" |
| 38 | exp += " Creates a new folder for running SBase scripts.\n" |
| 39 | exp += " The new folder contains default config files,\n" |
| 40 | exp += " sample tests for helping new users get started,\n" |
| 41 | exp += " and Python boilerplates for setting up customized\n" |
| 42 | exp += " test frameworks.\n" |
| 43 | if not msg: |
| 44 | raise Exception("INVALID RUN COMMAND!\n\n%s" % exp) |
| 45 | elif msg == "help": |
| 46 | print("\n%s" % exp) |
| 47 | sys.exit() |
| 48 | else: |
| 49 | raise Exception("INVALID RUN COMMAND!\n\n%s\n%s\n" % (exp, msg)) |
| 50 | |
| 51 | |
| 52 | def main(): |
no outgoing calls
no test coverage detected
searching dependent graphs…