def test_get_remote_url_enterprise(self, mock_popeno): mock_popeno().communicate.return_value = ( b'https://notgh.com/mkdocs/mkdocs.git\n', b'') expected = (None, None) self.assertEqual(expected, gh_deploy._get_remote_url('origin'))
def test_get_remote_url_http(self, mock_popeno): mock_popeno().communicate.return_value = ( b'https://github.com/mkdocs/mkdocs.git\n', b'') expected = (u'https://', u'mkdocs/mkdocs.git') self.assertEqual(expected, gh_deploy._get_remote_url('origin'))
def test_get_remote_url_enterprise(self, mock_popeno): mock_popeno().communicate.return_value = ( b'https://notgh.com/mkdocs/mkdocs.git\n', b'' ) expected = (None, None) self.assertEqual(expected, gh_deploy._get_remote_url('origin'))
def test_get_remote_url_http(self, mock_popeno): mock_popeno().communicate.return_value = ( b'https://github.com/mkdocs/mkdocs.git\n', b'' ) expected = (u'https://', u'mkdocs/mkdocs.git') self.assertEqual(expected, gh_deploy._get_remote_url('origin'))