Skip to content
Snippets Groups Projects
Select Git revision
  • a5e206a5c7724b323cf2a94d0b5a6e0eb88f80bf
  • master default
2 results

test_gitreceive.py

Blame
  • test_gitreceive.py 415 B
    def test_gitreceive(Command, Sudo):
        with Sudo():
            Command('rm -rf /home/git/test /var/tmp/gitreceive')
            push = Command('git -C /root/gitreceive push test master')
        assert push.rc == 0
        assert 'OK' in push.stderr
        with Sudo():
            second_push = Command('git -C /root/gitreceive push test master')
        assert second_push.rc == 0
        assert 'Everything up-to-date' in second_push.stderr