def setup(self): self.root = dirname(abspath(__file__)) self.url = 'https://github.com/testuser/testrepo.git/' self.entry = SkillEntry( 'test-name', 'test-path', url='https://github.com/testuser/testrepo.git/')
def test_attach(self): """Attach a remote entry to a local entry""" remote = SkillEntry('test-name2', 'test-path2', url='https://github.com/testname/testrepo2.git/') self.entry.is_local = True self.entry.attach(remote) assert self.entry.url == remote.url assert self.entry.path == 'test-path' assert self.entry.is_local
def test_git_ssl_init(self): s = SkillEntry('test-name', 'test-path', url='[email protected]:forslund/skill-cocktail.git') assert s.author == ''
def test_https_init(self): s = SkillEntry('test-name', 'test-path', url='https://github.com/testuser/testrepo.git/') assert s.author == 'testuser'