Show
Ignore:
Timestamp:
10/02/09 12:06:14 (2 years ago)
Author:
ged
Message:

Dropped support for python 2.3, SQLAlchemy 0.4 and deprecated stuff from Elixir
0.7

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/tests/test_versioning.py

    r485 r490  
    6262                        description='draft description', director=gilliam) 
    6363        bruce = Actor(name='Bruce Willis', movies=[monkeys]) 
    64         session.commit(); session.clear() 
     64        session.commit(); session.expunge_all() 
    6565 
    6666        time.sleep(1) 
     
    7474        assert movie.autoupd == 2, movie.autoupd 
    7575        movie.description = 'description two' 
    76         session.commit(); session.clear() 
     76        session.commit(); session.expunge_all() 
    7777 
    7878        time.sleep(1) 
     
    8282        movie = Movie.get_by(title='12 Monkeys') 
    8383        movie.description = 'description three' 
    84         session.commit(); session.clear() 
     84        session.commit(); session.expunge_all() 
    8585 
    8686        # Edit the ignored field, this shouldn't change the version 
    8787        monkeys = Movie.get_by(title='12 Monkeys') 
    8888        monkeys.ignoreme = 1 
    89         session.commit(); session.clear() 
     89        session.commit(); session.expunge_all() 
    9090 
    9191        time.sleep(1) 
     
    129129 
    130130        movie.revert_to(2) 
    131         session.commit(); session.clear() 
     131        session.commit(); session.expunge_all() 
    132132 
    133133        movie = Movie.get_by(title='12 Monkeys') 
     
    137137 
    138138        movie.description = "description 3" 
    139         session.commit(); session.clear() 
     139        session.commit(); session.expunge_all() 
    140140 
    141141        movie = Movie.get_by(title='12 Monkeys') 
    142142        movie.description = "description 4" 
    143         session.commit(); session.clear() 
     143        session.commit(); session.expunge_all() 
    144144 
    145145        movie = Movie.get_by(title='12 Monkeys') 
     
    147147        movie.revert_to(movie.versions[-2]) 
    148148        movie.description = "description 5" 
    149         session.commit(); session.clear() 
     149        session.commit(); session.expunge_all() 
    150150 
    151151        movie = Movie.get_by(title='12 Monkeys')