示例#1
0
def settings(tmpdir):
    settings = Settings(tmpdir)
    vdot = VDOT(settings.database, settings.vdot)
    vdot.calculate_vdot('HalfMarathon', '01:36:40')
    vdot.save_vdot()
    settings.get_settings()
    return settings
示例#2
0
def settings(tmpdir):
    settings = Settings(tmpdir)
    vdot = VDOT(settings.database, settings.vdot)
    vdot.calculate_vdot('HalfMarathon', '01:36:40')
    vdot.save_vdot()
    settings.get_settings()
    settings.get_zones()
    Scheduler(settings, 'Half Marathon 47 Miles', 'Test Schedule', race_date,
              start_date)
    return settings
示例#3
0
def test_save_vdot(database):
    vdot = VDOT(database)
    vdot.calculate_vdot('Marathon', '03:37:39')
    vdot.save_vdot()
    current_settings = database.get_current_settings()
    assert vdot.vdot_score == Decimal(str(current_settings[2]))