Ad
  • Custom User Avatar
  • Custom User Avatar

    I completely forgot about this, sorry (I didn't get notifications for the answers...)

    I suppressed the remaining tests about that, I think. Should be compliant with the description, now.

  • Custom User Avatar

    The Kata is a good opportunity to learn/reinforce knowledge of the class creation process and descriptors. However, the instructions are not very explicit, and I wasted a lot of hours because of that. To anyone else, I suggest:

    1. Check out the code of the Test Cases to see what is going on with the tests
    2. The tests will change attributes of the object after it is instantiated
    3. Defaults are only relevant at User class instantiation, not if an attribute is changed after the instance is created
    4. The DateTimeField (if auto_now is set) should return the current time if the default attribute is accessed (mentioned in other discussions, but not in the Kata description)
    5. The EmailField length restrictions apply to the whole field, not each of the 3 parts (it could be taken either way in the description)

    Hope this helps someone :-)