##// END OF EJS Templates
tests: Fix test that modifies test repo settings....
Martin Bornhold -
r397:4367a81c default
parent child Browse files
Show More
@@ -87,13 +87,16 b' class TestAdminRepoSettingsController:'
87 if backend.alias not in setting_backends:
87 if backend.alias not in setting_backends:
88 pytest.skip('Setting not available for backend {}'.format(backend))
88 pytest.skip('Setting not available for backend {}'.format(backend))
89
89
90 settings_model = SettingsModel(repo=backend.repo)
90 repo = backend.create_repo()
91
92 settings_model = SettingsModel(repo=repo)
91 vcs_settings_url = url(
93 vcs_settings_url = url(
92 'repo_vcs_settings', repo_name=backend.repo.repo_name)
94 'repo_vcs_settings', repo_name=repo.repo_name)
93
95
94 self.app.post(
96 self.app.post(
95 vcs_settings_url,
97 vcs_settings_url,
96 params={
98 params={
99 'inherit_global_settings': False,
97 'new_svn_branch': 'dummy-value-for-testing',
100 'new_svn_branch': 'dummy-value-for-testing',
98 'new_svn_tag': 'dummy-value-for-testing',
101 'new_svn_tag': 'dummy-value-for-testing',
99 'rhodecode_{}'.format(setting_name): 'true',
102 'rhodecode_{}'.format(setting_name): 'true',
@@ -105,6 +108,7 b' class TestAdminRepoSettingsController:'
105 self.app.post(
108 self.app.post(
106 vcs_settings_url,
109 vcs_settings_url,
107 params={
110 params={
111 'inherit_global_settings': False,
108 'new_svn_branch': 'dummy-value-for-testing',
112 'new_svn_branch': 'dummy-value-for-testing',
109 'new_svn_tag': 'dummy-value-for-testing',
113 'new_svn_tag': 'dummy-value-for-testing',
110 'rhodecode_{}'.format(setting_name): 'false',
114 'rhodecode_{}'.format(setting_name): 'false',
General Comments 0
You need to be logged in to leave comments. Login now