Exemple #1
0
def test_scraper_init_with_unranked():
    try:
        scraper = scoresaber_scraper(unranked=True)
        assert True
    except:
        assert False
    finally:
        scraper.__del__()
Exemple #2
0
def test_scraper_init():
    try:
        scraper = scoresaber_scraper()
        assert True
    except:
        assert False
    finally:
        scraper.__del__()
Exemple #3
0
def test_unranked_scraping():
    try:
        scraper = scoresaber_scraper(interval=2, unranked=True)
        scraper.scrape(range(1))
        assert True
    except:
        assert False
    finally:
        scraper.__del__()
Exemple #4
0
def test_dataframe_conversion():
    try:
        scraper = scoresaber_scraper(interval=2)
        scraper.scrape(range(1))
        songdf = scraper.to_dataframe()
        assert True
    except:
        assert False
    finally:
        scraper.__del__()
Exemple #5
0
def test_scraper_init_with_tooshort_interval():
    try:
        scraper = scoresaber_scraper(interval=0)
        if scraper.interval == 5:
            assert True
        else:
            assert False
    except:
        assert False
    finally:
        scraper.__del__()