-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Unitarias #69
base: master
Are you sure you want to change the base?
Unitarias #69
Conversation
absence: change the file datatable and integrate in blog
This reverts commit f4b275d.
Falta: 1.Limpiar codigo 2.Revisar bug
…eccionar el icono de detalles
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.
Small comment to consider factory-boy for fixtures.
@@ -9,7 +9,12 @@ | |||
class TestEntryDetail(TestCase): | |||
|
|||
def setUp(self): | |||
self.entry_1 = models.Entry.objects.create(title=u'Welcome!', is_published=True) | |||
self.entry_1 = models.Entry.objects.create( |
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.
For fixtures in test you can use factory-boy it will allow you to easy create fixtures and deal with django model dependencies. https://factoryboy.readthedocs.io/en/stable/
self.entry = models.Entry.objects.create(title=u'Welcome!', | ||
content='### Some Content', | ||
is_published=False) | ||
self.entry = models.Entry.objects.create( |
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.
Better to use factory-boy here.
Blog beta with datatable and permissions