Permalink
Branch: master
Commits on Mar 10, 2018
  1. Handle exercise names on public profiles

    samhinshaw committed Mar 10, 2018
    Exercises on public profiles are not links, so the DOM is different:
    `td > div` rather than `td > div > a`
Commits on Nov 8, 2017
  1. Removing accidental test_get_exercise()

    samhinshaw committed Nov 8, 2017
    - test_get_exercise() is in a different branch & PR
    - wrapping long line
  2. Add boolean completion property

    samhinshaw committed Nov 8, 2017
    - `False` by default
    - Checks for span within ‘complete_day` div
        + If class of span is `day_incomplete_message`, return False
        + If class of span is `day_complete_message`, return True
        + Could easily be altered to return `complete` or `incomplete`
    - Add completion testing (default False) to current `test_get_day()` and `test_get_day_unit_unaware()` tests
    - Add new `completed_diary.html`
    - Create new test `test_get_completed_day()` to test for `day_complete_message` in the `completed_diary.html`
  3. Adding test methods for get_exercise()

    samhinshaw committed Nov 8, 2017
    - Bring in de-identified, de-JavaScripted `exercise.html`
    - Create `test_get_exercise()` method to test array of objects returned from `get_exercise()`
Commits on Aug 22, 2017
  1. Shorten ValueError line-length

    samhinshaw committed Aug 22, 2017
    Shorten ValueError line-length to obey 80 character line-length linting.
  2. Adding methods for extracting exercise data

    samhinshaw committed Aug 22, 2017
    - define class `Exercise`, an object containing exercise entries for each group of exercises (cardio & strength)
    - define `_get_url_for_exercise`, an internal method for appending the baseURL to a specific user and date’s exercise diary
    - define `_get_exercise`, an internal method for extracting cardio & strength training exercise data from a given user and date
    - define `get_exercise`, a public method which returns an array of Exercise objects for a given user and date