Changeset 2552 in products


Ignore:
Timestamp:
Jun 17, 2010 5:58:49 PM (9 years ago)
Author:
mylan
Message:

#130: Fixed breakage on testing upgrades

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/plone4/quintagroup/plonegooglesitemaps/tests/testUpgrade.py

    r2538 r2552  
    117117        upgrades = _upgrade_registry.getUpgradeStepsForProfile(self.profile) 
    118118        upgrades = dict([(u.sortkey, u) for u in upgrades.values()]) 
     119        orig_ver = self.setup.getLastVersionForProfile(self.profile) 
     120        self.setup.setLastVersionForProfile(self.profile, "") 
    119121        try: 
    120122            # Replace original handlers with patched ones for test calls 
     
    134136            upgrades[2].handler = gsm_upgrades.upgrade_1_1_to_1_2 
    135137            upgrades[3].handler = gsm_upgrades.upgrade_1_2_to_1_3 
     138            self.setup.setLastVersionForProfile(self.profile, orig_ver) 
    136139 
    137140         
Note: See TracChangeset for help on using the changeset viewer.