A console script that allows you to easily update multiple git repositories at once
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

25 Zeilen
691 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. from __future__ import print_function, unicode_literals
  6. import platform
  7. import subprocess
  8. import sys
  9. from gitup import __version__
  10. def run_cli(*args):
  11. cmd = [sys.executable, "-m", "gitup"] + list(args)
  12. output = subprocess.check_output(cmd)
  13. return output.strip().decode("utf8")
  14. def test_cli_version():
  15. """make sure we're using the right version of gitup"""
  16. output = run_cli("-v")
  17. expected = "gitup {} (Python {})".format(
  18. __version__, platform.python_version())
  19. assert output == expected