Esempio n. 1
0
def test_set_exclusions_file():
    """Test the set_exclusions_file method of Base()."""

    base = load_base(set_erps=True)
    base.set_exclusions_file()

    assert base.exclusions
Esempio n. 2
0
def test_set_exclusions_file():
    """Test the set_exclusions_file method of Base()."""

    base = load_base(set_erps=True)
    base.set_exclusions_file()

    assert base.exclusions
Esempio n. 3
0
def test_set_erps():
    """Test the set_erps method of Base()."""

    base = load_base()
    base.set_erps(['N100', 'P100'])

    assert base.erps
Esempio n. 4
0
def test_set_terms():
    """Test the set_terms method of Base."""

    base = load_base()
    base.set_terms(['think', 'do'])

    assert base.terms
Esempio n. 5
0
def test_set_terms():
    """Test the set_terms method of Base."""

    base = load_base()
    base.set_terms(['think', 'do'])

    assert base.terms
Esempio n. 6
0
def test_set_terms_file_dis():
    """Test the set_terms_file method of Base(), for disease files."""

    base = load_base()
    base.set_terms_file('disease')

    assert base.terms
Esempio n. 7
0
def test_set_erps_file():
    """Test the set_erps_file method of Base()."""

    base = load_base()
    base.set_erps_file()

    assert base.erps
Esempio n. 8
0
def test_set_erps_file():
    """Test the set_erps_file method of Base()."""

    base = load_base()
    base.set_erps_file()

    assert base.erps
Esempio n. 9
0
def test_set_erps():
    """Test the set_erps method of Base()."""

    base = load_base()
    base.set_erps(['N100', 'P100'])

    assert base.erps
Esempio n. 10
0
def test_set_terms_file_dis():
    """Test the set_terms_file method of Base(), for disease files."""

    base = load_base()
    base.set_terms_file('disease')

    assert base.terms
Esempio n. 11
0
def test_set_terms_file_cog():
    """Test the set_terms_file method of Base(), for cognitive files."""

    base = load_base()
    base.set_terms_file('cognitive')

    assert base.terms
Esempio n. 12
0
def test_set_terms_file_cog():
    """Test the set_terms_file method of Base(), for cognitive files."""

    base = load_base()
    base.set_terms_file('cognitive')

    assert base.terms
Esempio n. 13
0
def test_unload_exclusions():
    """Test unload_exclusions of Base()."""

    base = load_base(set_erps=True, set_excl=True)

    base.unload_exclusions()

    assert not base.exclusions
Esempio n. 14
0
def test_check_exclusions():
    """Test the check_exclusions method of Base()."""

    base = load_base(set_erps=True, set_excl=True)

    base.check_exclusions()

    assert True
Esempio n. 15
0
def tests_check_erps():
    """Test the check_erps method of Base()."""

    base = load_base(set_erps=True)

    base.check_erps()

    assert True
Esempio n. 16
0
def test_check_terms():
    """Test the check_terms method of Base()."""

    base = load_base(set_terms='cognitive')

    base.check_terms()

    assert True
Esempio n. 17
0
def test_check_exclusions():
    """Test the check_exclusions method of Base()."""

    base = load_base(set_erps=True, set_excl=True)

    base.check_exclusions()

    assert True
Esempio n. 18
0
def test_unload_exclusions():
    """Test unload_exclusions of Base()."""

    base = load_base(set_erps=True, set_excl=True)

    base.unload_exclusions()

    assert not base.exclusions
Esempio n. 19
0
def test_get_db_info():
    """Test the get_db_info method of Base()."""

    base = load_base()

    base.get_db_info('https://eutils.ncbi.nlm.nih.gov/entrez/eutils/einfo.fcgi?db=pubmed')

    assert base.db_info
Esempio n. 20
0
def tests_check_erps():
    """Test the check_erps method of Base()."""

    base = load_base(set_erps=True)

    base.check_erps()

    assert True
Esempio n. 21
0
def test_check_terms():
    """Test the check_terms method of Base()."""

    base = load_base(set_terms='cognitive')

    base.check_terms()

    assert True
Esempio n. 22
0
def test_unload_erps():
    """Test unloading of ERP words."""

    base = load_base(set_erps=True)

    base.unload_erps()

    assert not base.erps
    assert not base.n_erps
Esempio n. 23
0
def test_get_db_info():
    """Test the get_db_info method of Base()."""

    base = load_base()

    base.get_db_info(
        'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/einfo.fcgi?db=pubmed')

    assert base.db_info
Esempio n. 24
0
def test_unload_erps():
    """Test unloading of ERP words."""

    base = load_base(set_erps=True)

    base.unload_erps()

    assert not base.erps
    assert not base.n_erps
Esempio n. 25
0
def test_unload_terms():
    """Test the unload_terms method of Base()."""

    base = load_base(set_terms='disease')

    base.unload_terms()

    assert not base.terms_type
    assert not base.terms
    assert not base.n_terms
Esempio n. 26
0
def test_unload_terms():
    """Test the unload_terms method of Base()."""

    base = load_base(set_terms='disease')

    base.unload_terms()

    assert not base.terms_type
    assert not base.terms
    assert not base.n_terms