Ejemplo n.º 1
0
 def test_call_script_wrapper(self):
     args = ["scripts/rapport", "--version"]
     # The script is meant to be with rapport installed, i.e. not
     # from the (development) tree. Thus we have to adjust PYTHONPATH:
     env = os.environ.copy()
     env.update({"PYTHONPATH": "."})
     self.assertEqual(silent_popen(args, env=env), self.result)
Ejemplo n.º 2
0
 def test_call_script_wrapper(self):
     args = ["scripts/rapport", "--version"]
     # The script is meant to be with rapport installed, i.e. not
     # from the (development) tree. Thus we have to adjust PYTHONPATH:
     env = os.environ.copy()
     env.update({"PYTHONPATH": "."})
     self.assertEqual(silent_popen(args, env=env), self.result)
Ejemplo n.º 3
0
 def test_invoke_script_wrapper_locally(self):
     args = ["scripts/rapport", "--version"]
     self.assertEqual(silent_popen(args), self.result)
Ejemplo n.º 4
0
 def test_execute_rapport_cli_module(self):
     args = [sys.executable, "-m", "rapport.cli", "--version"]
     self.assertEqual(silent_popen(args), self.result)
Ejemplo n.º 5
0
 def test_call_rapport_cli(self):
     args = [sys.executable, "rapport/cli.py", "--version"]
     self.assertEqual(silent_popen(args), self.result)
Ejemplo n.º 6
0
 def test_call_rapport_cli(self):
     args = [sys.executable, "rapport/cli.py", "--version"]
     self.assertEqual(silent_popen(args), self.result)