def test_unique_id(): is_unique(f'{DATASET}.comparison', 'cset_id')
def test_unique(): assert is_unique(f'{DATASET}.wos_citation_counts', 'id') assert is_unique(f'{DATASET}.ds_citation_counts', 'id') assert is_unique(f'{DATASET}.mag_citation_counts', 'id') assert is_unique(f'{DATASET}.all_citation_counts', 'cset_id')
def test_unique(): # Each row gives a cset_id, source_id pair, and we expect the source_ids to be unique assert is_unique(f'{DATASET}.percentiles', 'cset_id') assert none_null(f'{DATASET}.percentiles', 'cset_id') assert none_null(f'{DATASET}.percentiles', 'year')
def test_unique(): # Each row gives a cset_id, source_id pair, and we expect the source_ids to be unique assert is_unique(f'{DATASET}.cset_ids', 'source_id') assert is_unique(f'{DATASET}.wide_ids', 'cset_id')
def test_unique_mag(): assert is_unique(f'{DATASET}.mag_arxiv_categories', 'cset_id')
def test_unique_ds(): assert is_unique(f'{DATASET}.ds_arxiv_categories', 'id')
def test_unique_all(): assert is_unique(f'{DATASET}.all_categories', 'cset_id')