async def test_hydroshare_doi(): spec = '10.4211/hs.b8f6eae9d89241cf8b5904033460af61' provider = HydroshareProvider(spec=spec) ref = await provider.get_resolved_ref() assert 'b8f6eae9d89241cf8b5904033460af61.v' in ref slug = provider.get_build_slug() assert 'hydroshare-b8f6eae9d89241cf8b5904033460af61.v' in slug repo_url = provider.get_repo_url() assert repo_url == 'https://www.hydroshare.org/resource/b8f6eae9d89241cf8b5904033460af61' ref_url = await provider.get_resolved_ref_url() assert ref_url == repo_url resolved_spec = await provider.get_resolved_spec() assert resolved_spec == repo_url
async def test_hydroshare(): spec = 'https://www.hydroshare.org/resource/142c59757ed54de1816777828c9716e7' provider = HydroshareProvider(spec=spec) ref = await provider.get_resolved_ref() assert '142c59757ed54de1816777828c9716e7.v' in ref slug = provider.get_build_slug() assert 'hydroshare-142c59757ed54de1816777828c9716e7.v' in slug repo_url = provider.get_repo_url() assert repo_url == spec ref_url = await provider.get_resolved_ref_url() assert ref_url == repo_url resolved_spec = await provider.get_resolved_spec() assert resolved_spec == repo_url