Ejemplo n.º 1
0
 def test_load_repetition_with_recovery(self):
     assert load(self.repetition_with_recovery) == Set(repeats=1,
                                                       repetitions=[
                                                           Repetition(
                                                               repeats=10,
                                                               distance=400,
                                                               pace=72,
                                                               recovery=120,
                                                           ),
                                                       ],
                                                       recovery=None)
Ejemplo n.º 2
0
 def test_load_repetition_minimal(self):
     assert load(self.repetition_minimal) == Set(repeats=1,
                                                 repetitions=[
                                                     Repetition(
                                                         repeats=1,
                                                         distance=300,
                                                         pace='max',
                                                         recovery=None,
                                                     ),
                                                 ],
                                                 recovery=None)
Ejemplo n.º 3
0
 def test_load_sets(self):
     '3 x 4 x 300 (3000) [100m r/o & 5’]'
     assert load(self.sets) == Set(repeats='3',
                                   repetitions=[
                                       Repetition(
                                           repeats=4,
                                           distance=300,
                                           pace='3000',
                                           recovery='100m r/o',
                                       ),
                                   ],
                                   recovery=300)
Ejemplo n.º 4
0
 def test_load_multiple_repetitions(self):
     assert load(self.multiple_repetitions) == Set(
         repeats=1,
         repetitions=[
             Repetition(
                 repeats=2,
                 distance=500,
                 pace='300/48”, 200/max',
                 recovery=480,
             ),
             Repetition(
                 repeats=8,
                 distance=200,
                 pace=35,
                 recovery=60,
             ),
         ],
         recovery=900)
Ejemplo n.º 5
0
 def test_load_grouped_sets(self):
     assert load(self.grouped_sets) == Set(repeats=2,
                                           repetitions=[
                                               Repetition(
                                                   repeats=1,
                                                   distance=500,
                                                   pace='1500',
                                                   recovery=60,
                                               ),
                                               Repetition(
                                                   repeats=1,
                                                   distance=700,
                                                   pace='1500',
                                                   recovery=30,
                                               ),
                                               Repetition(
                                                   repeats=1,
                                                   distance=300,
                                                   pace='max',
                                                   recovery=None,
                                               )
                                           ],
                                           recovery=720)