diff --git a/test_themes/tests/test_theme_upgrade.py b/test_themes/tests/test_theme_upgrade.py index 7b31d7659..3a27e5e83 100644 --- a/test_themes/tests/test_theme_upgrade.py +++ b/test_themes/tests/test_theme_upgrade.py @@ -50,8 +50,7 @@ def test_01_theme_upgrade_post_copy(env): # 5. Upgrade Theme Nano theme_nano_module.button_immediate_upgrade() - env.reset() # clear the set of environments - env = env() # get an environment that refers to the new registry + env.transaction.reset() # clear the set of environments assert Website.viewref('website.template_footer_descriptive').active is False, \ "Theme Nano custo should NOT be applied"