Fix the Djblets utils module tests on Django 1.7+.

Review Request #7421 — Created June 13, 2015 and submitted

Information

Djblets
release-0.9.x
2543a5f...

Reviewers

The utils module had a number of template-related tests that no longer
work in Django. We were digging into the internals, trying to construct
tags manually, instead of through a template string. Now, we're using
template strings, restoring compatibility across all versions.

There was also a docstring being executed in the django.core.files.locks
compatibility module, which we didn't want to execute. This has been
removed.

Utility unit tests pass on Django 1.6 and 1.8.

Description From Last Updated

'djblets_deco' imported but unused

reviewbotreviewbot
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        djblets/util/tests.py
        djblets/util/compat/django/core/files/locks.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        djblets/util/tests.py
        djblets/util/compat/django/core/files/locks.py
    
    
  2. djblets/util/tests.py (Diff revision 1)
     
     
    Show all issues
     'djblets_deco' imported but unused
    
  3. 
      
chipx86
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/util/tests.py
        djblets/util/compat/django/core/files/locks.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/util/tests.py
        djblets/util/compat/django/core/files/locks.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.9.x (47c511a)
Loading...