# HG changeset patch # User Martin Bornhold # Date 2016-07-08 06:34:12 # Node ID 4367a81ccbc8f9096be93048ea365103820070f7 # Parent 2ba4c17163d05b0f0eabc62b370ffbca490b0956 tests: Fix test that modifies test repo settings. This test now creates it's own repo to modify the repo vcs settings. Instead of modifying the settings of the vcs_test_repo which is used in other tests again. diff --git a/rhodecode/tests/functional/test_admin_repo_settings.py b/rhodecode/tests/functional/test_admin_repo_settings.py --- a/rhodecode/tests/functional/test_admin_repo_settings.py +++ b/rhodecode/tests/functional/test_admin_repo_settings.py @@ -87,13 +87,16 @@ class TestAdminRepoSettingsController: if backend.alias not in setting_backends: pytest.skip('Setting not available for backend {}'.format(backend)) - settings_model = SettingsModel(repo=backend.repo) + repo = backend.create_repo() + + settings_model = SettingsModel(repo=repo) vcs_settings_url = url( - 'repo_vcs_settings', repo_name=backend.repo.repo_name) + 'repo_vcs_settings', repo_name=repo.repo_name) self.app.post( vcs_settings_url, params={ + 'inherit_global_settings': False, 'new_svn_branch': 'dummy-value-for-testing', 'new_svn_tag': 'dummy-value-for-testing', 'rhodecode_{}'.format(setting_name): 'true', @@ -105,6 +108,7 @@ class TestAdminRepoSettingsController: self.app.post( vcs_settings_url, params={ + 'inherit_global_settings': False, 'new_svn_branch': 'dummy-value-for-testing', 'new_svn_tag': 'dummy-value-for-testing', 'rhodecode_{}'.format(setting_name): 'false',