Separate out index name and unique constraint name generation in tests.

Review Request #8106 — Created April 8, 2016 and submitted

Information

Django Evolution
master
1984a29...

Reviewers

This updates the test utility functions and data to use separate
functions for computing index names vs. unique constraint names. We were
formerly generating the unique constraint names by passing default=False
to generate_index_name, but this isn't very clear, and isn't
future-proof. This change helps get us a step closer to the logic needed
for the Django 1.7+ port.

Unit tests pass for SQLite, MySQL, and Postgres.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        django_evolution/tests/db/postgresql.py
        django_evolution/tests/db/mysql.py
        django_evolution/tests/db/sqlite3.py
        django_evolution/tests/utils.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        django_evolution/tests/db/postgresql.py
        django_evolution/tests/db/mysql.py
        django_evolution/tests/db/sqlite3.py
        django_evolution/tests/utils.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (af226a7)
Loading...