def test_smoke_ancient(self): backup_argv = sys.argv sys.argv = ["python", "ancient_map", "-w", self.world] try: main() except Exception as e: raise e sys.argv = backup_argv
def test_smoke_full(self): # the big smoke test, can we go through # everything without it exploding? backup_argv = sys.argv sys.argv = ["python", "--width", "16", "--height", "16", "-r", "--gs"] try: main() except Exception as e: raise e
def test_smoke_info(self): backup_argv = sys.argv sys.argv = ["python", "info", self.world] try: main() except Exception as e: raise e # TODO: fill in the rest of the options and their possibilities sys.argv = backup_argv
def test_smoke_plates(self): backup_argv = sys.argv sys.argv = ["python", "plates", "--width", "16", "--height", "16", "--number-of-plates", "2"] try: main() except Exception as e: raise e sys.argv = backup_argv
def test_warnings(self): backup_argv = sys.argv sys.argv = ["python", "--width", "16", "--height", "16", "--temps", "1.1/.235/.406/.561/.634/-.1", "--humidity", "1.1/.222/.493/.764/.927/.986/-.1"] try: main() except Exception as e: raise e
def test_warnings(self): backup_argv = sys.argv sys.argv = [ "python", "--width", "16", "--height", "16", "--temps", "1.1/.235/.406/.561/.634/-.1", "--humidity", "1.1/.222/.493/.764/.927/.986/-.1" ] try: main() except Exception as e: raise e
def test_smoke_full(self): # the big smoke test, can we go through # everything without it exploding? backup_argv = sys.argv sys.argv = ["python", "--width", "16", "--height", "16", "-r", "-v", "--gs", "--scatter", "--temps", ".126/.235/.406/.561/.634/.876", "--humidity", ".059/.222/.493/.764/.927/.986/.998"] try: main() except Exception as e: raise e
def test_smoke_full(self): # the big smoke test, can we go through # everything without it exploding? backup_argv = sys.argv sys.argv = ["python", "--width", "16", "--height", "16", "-r", "-v", "--gs", "--scatter", "--temps", ".126/.235/.406/.561/.634/.876", "--humidity", ".059/.222/.493/.764/.927/.986/.998", "-go", ".2", "-gv", "1.25"] try: main() except Exception as e: raise e