Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
rhodecode/api/tests/test_create_user.py
0
+1
-1
@@
-180,7
+180,7
b' class TestCreateUser(object):'
180
180
181
181
personal_group = RepoGroup . get_by_group_name ( username )
182
182
assert personal_group
183
assert personal_group . personal == True
183
assert personal_group . personal is True
184
184
assert personal_group . user . username == username
185
185
186
186
try :
rhodecode/apps/user_group/tests/test_user_groups.py
0
+1
-1
@@
-191,7
+191,7
b' class TestUserGroupsView(TestController)'
191
191
192
192
assert user_group . users_group_name == new_name
193
193
assert user_group . user_group_description == 'DESC'
194
assert user_group . users_group_active == False
194
assert user_group . users_group_active is False
195
195
196
196
def test_update_user_group_name_conflicts ( self , user_util ):
197
197
self . log_user ()
rhodecode/authentication/plugins/auth_crowd.py
0
+1
-1
@@
-112,7
+112,7
b' class CrowdServer(object):'
112
112
passwd="some_passwd",
113
113
version="1")
114
114
"""
115
if not "port" in kwargs :
115
if 'port' not in kwargs :
116
116
kwargs [ "port" ] = "8095"
117
117
self . _logger = kwargs . get ( "logger" , logging . getLogger ( __name__ ))
118
118
self . _uri = " %s :// %s : %s /crowd" % ( kwargs . get ( "method" , "http" ),
rhodecode/lib/dbmigrate/migrate/versioning/version.py
0
+1
-1
@@
-105,7
+105,7
b' class Collection(pathed.Pathed):'
105
105
return max ([ VerNum ( 0 )] + list ( self . versions . keys ()))
106
106
107
107
def _next_ver_num ( self , use_timestamp_numbering ):
108
if use_timestamp_numbering == True :
108
if use_timestamp_numbering is True :
109
109
return VerNum ( int ( datetime . utcnow () . strftime ( '%Y%m %d %H%M%S' )))
110
110
else :
111
111
return self . latest + 1
rhodecode/lib/logging_formatter.py
0
+2
-3
@@
-1,4
+1,3
b''
1
2
1
# Copyright (C) 2010-2023 RhodeCode GmbH
3
2
#
4
3
# This program is free software: you can redistribute it and/or modify
@@
-182,5
+181,5
b' class ColorFormatterSql(logging.Formatte'
182
181
colored_record = '' . join ([ start , def_record , end ])
183
182
return colored_record
184
183
185
# marcink: needs to stay with this name for backward .ini compatability
186
Pyro4AwareFormatter = ExceptionAwareFormatter
184
# NOTE ( marcink) : needs to stay with this name for backward .ini compatability
185
Pyro4AwareFormatter = ExceptionAwareFormatter # noqa
rhodecode/lib/markdown_ext.py
0
+2
-2
@@
-112,8
+112,8
b' class UrlizePattern(markdown.inlinepatte'
112
112
113
113
text = url
114
114
115
if not url . split ( '://' )[ 0 ] in ( 'http' , 'https' , 'ftp' ):
116
if '@' in url and not '/' in url :
115
if url . split ( '://' )[ 0 ] not in ( 'http' , 'https' , 'ftp' ):
116
if '@' in url and '/' not in url :
117
117
url = 'mailto:' + url
118
118
else :
119
119
url = 'http://' + url
rhodecode/tests/models/test_user_groups.py
0
+1
-1
@@
-75,7
+75,7
b' class TestGetUserGroups(object):'
75
75
groups = UserGroupModel () . get_user_groups ()
76
76
expected = ( 'id' , 'icon_link' , 'value_display' , 'value' , 'value_type' )
77
77
for group in groups :
78
assert group [ 'value_type' ] is 'user_group'
78
assert group [ 'value_type' ] == 'user_group'
79
79
for key in expected :
80
80
assert key in group
81
81
rhodecode/tests/models/test_users.py
0
+1
-1
@@
-50,7
+50,7
b' class TestGetUsers(object):'
50
50
'id' , 'first_name' , 'last_name' , 'username' , 'icon_link' ,
51
51
'value_display' , 'value' , 'value_type' )
52
52
for user in users :
53
assert user [ 'value_type' ] is 'user'
53
assert user [ 'value_type' ] == 'user'
54
54
for key in expected_keys :
55
55
assert key in user
56
56
rhodecode/tests/other/test_validators.py
0
+1
-1
@@
-164,7
+164,7
b' def test_ValidRepoGroup_edit_group_no_ro'
164
164
def test_ValidPassword ( localizer ):
165
165
validator = v . ValidPassword ( localizer )
166
166
assert 'lol' == validator . to_python ( 'lol' )
167
assert None == validator . to_python ( None )
167
assert None is validator . to_python ( None )
168
168
pytest . raises ( formencode . Invalid , validator . to_python , 'ąćżź' )
169
169
170
170
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages