A console script that allows you to easily update multiple git repositories at once
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

23 行
634 B

  1. # -*- coding: utf-8 -*-
  2. #
  3. # Copyright (C) 2011-2018 Ben Kurtovic <ben.kurtovic@gmail.com>
  4. # Released under the terms of the MIT License. See LICENSE for details.
  5. import platform
  6. import subprocess
  7. import sys
  8. from gitup import __version__
  9. def run_cli(*args):
  10. cmd = [sys.executable, "-m", "gitup"] + list(args)
  11. output = subprocess.check_output(cmd)
  12. return output.strip().decode("utf8")
  13. def test_cli_version():
  14. """make sure we're using the right version of gitup"""
  15. output = run_cli("-v")
  16. expected = "gitup {} (Python {})".format(
  17. __version__, platform.python_version())
  18. assert output == expected