コード例 #1
0
 def test_dryrun_optimisation_works(self):
     outs_dir = "."
     opts = pabot._options_for_dryrun({}, outs_dir)
     with pabot._with_modified_robot():
         pabot.run("tests/recursion.robot", **opts)
     output = os.path.join(outs_dir, opts['output'])
     data = ""
     with open(output, "r") as f:
         data = f.read()
     self.assertTrue("No Operation" in data, data)
     self.assertFalse("Recursive" in data, data)
コード例 #2
0
ファイル: test_pabot.py プロジェクト: mkorpela/pabot
 def test_dryrun_optimisation_works(self):
     outs_dir = "."
     opts = pabot._options_for_dryrun({}, outs_dir)
     with pabot._with_modified_robot():
         pabot.run("tests/recursion.robot", **opts)
     output = os.path.join(outs_dir, opts['output'])
     data = ""
     with open(output, "r") as f:
         data = f.read()
     self.assertTrue("No Operation" in data, data)
     self.assertFalse("Recursive" in data, data)