-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing workshop #9668
Testing workshop #9668
Conversation
af39944
to
a07c73b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! just the comment below
a07c73b
to
ab1c515
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @ksolo 🚀 - just a couple of minor comments/questions
from grants.models.cart_activity import CartActivity | ||
|
||
from .grant_factory import GrantFactory | ||
|
||
|
||
@pytest.mark.django_db | ||
class CartActivityFactory(factory.django.DjangoModelFactory): | ||
"""Create mock CartActivity for testing.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come were removing all of these descriptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed them because they were technically not correct, these are factories not mocks. I also didn't think they added context. I am happy to put them back in though with the correction that they are factories that return instances of the Django Model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats cool with me, I think they're well enough named that we don't need the descriptions!
Co-authored-by: Graham Dixon <[email protected]>
Prior to workshop:
tests/factories
instead oftests/models/factories
to make them easier to findWorkshop - added bountry fulfillment test.