def test_perceval_params(self): """Test the extraction of perceval params from an URL""" url = "https://github.com/chaoss/grimoirelab-perceval" expected_params = ['chaoss', 'grimoirelab-perceval'] self.assertListEqual(GitHubOcean.get_perceval_params_from_url(url), expected_params)
def test_arthur_params(self): """Test the extraction of arthur params from an URL""" with open("data/projects-release.json") as projects_filename: url = json.load(projects_filename)['grimoire']['github'][0] arthur_params = {'owner': 'chaoss', 'repository': 'grimoirelab-perceval'} self.assertDictEqual(arthur_params, GitHubOcean.get_arthur_params_from_url(url))
def test_arthur_params(self): """Test the extraction of arthur params from an URL""" url = "https://github.com/chaoss/grimoirelab-perceval" expected_params = { 'owner': 'chaoss', 'repository': 'grimoirelab-perceval' } self.assertDictEqual(GitHubOcean.get_arthur_params_from_url(url), expected_params)