def i18n_clone_overrides(): """ Initialise translation overrrides. """ # I'm not sure that's the right way to do this, but whatever. if not os.path.isdir(TRANSLATION_OVERRIDES_PATH): git.clone(TRANSLATION_OVERRIDES_REPO,TRANSLATION_OVERRIDES_PATH)
def i18n_clone_overrides(): """ Initialise translation overrrides. """ # I'm not sure that's the right way to do this, but whatever. if not os.path.isdir(TRANSLATION_OVERRIDES_PATH): git.clone(TRANSLATION_OVERRIDES_REPO, TRANSLATION_OVERRIDES_PATH)
def test_simple_clone(sh): git.clone("git://foo/foo.git", "bar") assert sh.called assert sh.call_args[0][0] == "git clone git://foo/foo.git bar"