Show More
@@ -110,10 +110,12 b' class TestHomeController(TestController)' | |||
|
110 | 110 | def test_index_show_version(self, autologin_user, name, state): |
|
111 | 111 | version_string = 'RhodeCode Enterprise %s' % rhodecode.__version__ |
|
112 | 112 | |
|
113 |
s |
|
|
114 | show.app_settings_value = state | |
|
115 |
Session().add(s |
|
|
113 | sett = SettingsModel().create_or_update_setting( | |
|
114 | 'show_version', state, 'bool') | |
|
115 | Session().add(sett) | |
|
116 | 116 | Session().commit() |
|
117 | SettingsModel().invalidate_settings_cache() | |
|
118 | ||
|
117 | 119 | response = self.app.get(url(controller='home', action='index')) |
|
118 | 120 | if state is True: |
|
119 | 121 | response.mustcontain(version_string) |
General Comments 0
You need to be logged in to leave comments.
Login now