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