# HG changeset patch # User Daniel Dourvaris # Date 2020-07-02 15:58:05 # Node ID e353e96f2ec1ac8a11e677a21197a1110a63286d # Parent 73f70a03643758e2515508e4726c107ed29f8c06 tests: fixed some tests after recent changes. diff --git a/rhodecode/apps/gist/tests/test_admin_gists.py b/rhodecode/apps/gist/tests/test_admin_gists.py --- a/rhodecode/apps/gist/tests/test_admin_gists.py +++ b/rhodecode/apps/gist/tests/test_admin_gists.py @@ -302,7 +302,7 @@ class TestGistsController(TestController assert_response = response.assert_response() assert_response.element_equals_to( 'div.rc-user span.user', - 'test_admin') + 'test_admin') response.mustcontain('gist-desc') @@ -328,7 +328,7 @@ class TestGistsController(TestController assert_response = response.assert_response() assert_response.element_equals_to( 'div.rc-user span.user', - 'test_admin') + 'test_admin') response.mustcontain('gist-desc') def test_show_as_raw(self, create_gist): diff --git a/rhodecode/tests/models/schemas/test_repo_group_schema.py b/rhodecode/tests/models/schemas/test_repo_group_schema.py --- a/rhodecode/tests/models/schemas/test_repo_group_schema.py +++ b/rhodecode/tests/models/schemas/test_repo_group_schema.py @@ -113,6 +113,7 @@ class TestRepoGroupSchema(object): repo_group_owner=user_regular.username )) - expected = 'Parent repository group `{}` does not exist'.format( - test_repo_group.group_name) + expected = 'You do not have the permissions to store ' \ + 'repository groups inside repository group `{}`'\ + .format(test_repo_group.group_name) assert excinfo.value.asdict()['repo_group'] == expected