Services Blog Français

django-responsediff 0.3.0

| by jpic | python django best-practice django-responsediff
django-responsediff 0.3.0 has been released ! It now also checks the status_code, and has a cute mixin: from responsediff.test import ResponseDiffTestMixin class MixinTest(ResponseDiffTestMixin, test.TestCase): def test_admin(self): self.assertResponseDiffEmpty(test.Client().get('/admin/')) The above will fail on the first time with FixtureCreated to indicate that it has written responsediff/tests/response_fixtures/MixinTest.test_admin/{content,status_code}. This file is meant to be added to version control. So next time this will run, it will check that response.status_code and response.content is the same, in future version, or in other configurations (ie. Read More

django-autocomplete-light 3.0.0 release

| by jpic | django-autocomplete-light django python
After 4 years of supporting django-autocomplete-light, I’m beginning to figure what users expect and the common mistakes, like registering the wrong model for autocomplete, or having troubbles figuring how to link suggestions with other form fields, or create choices on the fly, or with the magic modelform. So at first, I really tried to find other autocompletion apps for with DAL could be just an extension. It turned out that with they had too much security issues, known security vulnerabilities which aren’t going to be fixed (which I don’t dare to post here). Read More

Syntax highlighting for Django’s SQL query logging

| by jpic | python django
Markus Holtermann has published a tutorial for setting up syntax highlighting for Django’s SQL query logging. I didn’t try it but it looks pretty cool, maybe that’s something we could add to django-dbdiff somehow. Anyway, check it out !

django-autocomplete-light 2.3.3 release

| by jpic | python django django-autocomplete-light
This release fixes an important usability but on the manychoice fields, and introduces a minor backward compatibility break: #563 Don’t disable multiplechoicewidgets if select is [multiple], bd9ca0085 Don’t import anything in init anymore if on django 1.9 test_project fixes, for the above. Disabled field bug Thanks George Tantiras for reporting the bug ! Note that only paliative solutions have been taken for v2: repaired the demo website, should make it easier to spot bugs, bug fix in the JS. Read More

Automatic fixtures for HTTP Response assertions

| by jpic | python django test django-responsediff best-practice
As stated in the “Database state assertion” article: I’m pretty lazy when it comes to writing tests for existing code, however, I’m even lazier when it comes to repetitive manual testing action. When my user tests my website, they browse it and check that everything is rendered fine. In the same fashion, django-responsediff eases doing the high-level assertions of page HTML rendering. Consider this example: class TestYourView(TestCase): def test_your_page(self): result = test. Read More

django-autocomplete-light 2.3.0 release

| by jpic | python django django-autocomplete-light
#555 Django 1.4, 1.5 and 1.6 deprecation #497 Enable registration by model-name by @luzfcb #536 #551 Support proxy models b y @onrik #553 improved jQuery integration by @blueyed #516 Corrected french transation by @apinsard #541 Use error_messages on FieldBase to allow overrides by @dsanders11 #505 Ordering alias clash fix by @sandroden #515 Polish translation update by @mpasternak #543 ModelChoiceField requires the queryset argument #494 ModelChoiceField Watch changes to ‘queryset’ by @jonashaag #514 Fixed deprecation warning on Django 1. Read More

Django database testing

| by jpic | python django django-dbdiff
I’m pretty lazy when it comes to writing tests for existing code, however, I’m even lazier when it comes to repetitive manual testing action, we’ve got so much patches to review and test against so many versions of Python and Django, we need testing to be automated. This article presents a new Django app for testing the database. Java has DBunit and so does PHP, and django now has django-dbdiff. Read More

django-cities-light 3.2.0 release

| by jpic | python django django-cities-light
django-cities-light 3.2.0 was released, supporting Django 1.7 to 1.9 now, even though older versions should still work, they aren’t tested anymore. #105: Drop LazyProgressBar, patch was accepted upstream by Max Arnold, #104: Better feature code filtering by Max Arnold and Michael Gulev, #100, #96: The mystery about migrations appearing in some environments but not others has been solved: it was due to the presence of b'' in migration files. A new test was added to fail if django wants to create new migrations in any environment. Read More
Previous Page 20 of 32 Next Page

They trust us

Contact

logo