def test_upstream_remote(self): """Test getting the configured upstream remote""" context = self.context self.assertEqual(gitcmds.upstream_remote(context), None) self.run_git('config', 'branch.main.remote', 'test') self.cfg.reset() self.assertEqual(gitcmds.upstream_remote(context), 'test')
def test_upstream_remote(self): """Test getting the configured upstream remote""" context = self.context self.assertEqual(gitcmds.upstream_remote(context), None) self.run_git('config', 'branch.master.remote', 'test') self.cfg.reset() self.assertEqual(gitcmds.upstream_remote(context), 'test')
def test_upstream_remote(app_context): """Test getting the configured upstream remote""" assert gitcmds.upstream_remote(app_context) is None helper.run_git('config', 'branch.main.remote', 'test') app_context.cfg.reset() assert gitcmds.upstream_remote(app_context) == 'test'
def test_upstream_remote(self): """Test getting the configured upstream remote""" self.assertEqual(gitcmds.upstream_remote(config=self.config), None) self.git('config', 'branch.master.remote', 'test') self.config.reset() self.assertEqual(gitcmds.upstream_remote(config=self.config), 'test')