Ad
  • Custom User Avatar

    Loved this Kata, got me started with OOPS, lot to improve though
    thankyou

  • Custom User Avatar

    Sorry for the misunderstanding, thanks for the explanation.

  • Custom User Avatar

    Not an issue. All the tests are correct.

    Testing page_count method, tests assert that it should return 3, 10, 4, then -1 respectively but I'm failing all but the first
    Also, page_item_count method seems to not be tested

    10, 4, and -1 are expected values from page_item_count calls, not page_count...

  • Custom User Avatar

    Python testing seems off.

    Testing .page_count() method, tests assert that it should return 3, 10, 4, then -1 respectively but I'm failing all but the first. I put in a print statement and it seems that all test cases are with collections = range(1, 25) and items_per_page = 10. I'm getting 3 for all of those which should be correct.

    Also, .page_item_count() method seems to not be tested despite being in the template?