tests: use __name__ to get function name (#36515)
This commit is contained in:
parent
e0bdd1c60f
commit
4322fe9f64
|
@ -136,8 +136,8 @@ def test_get_tenants():
|
|||
def test_register_cronjobs():
|
||||
assert not pub.cronjobs
|
||||
pub.register_cronjobs()
|
||||
assert 'apply_global_action_timeouts' in [x.function.func_name for x in pub.cronjobs]
|
||||
assert 'clean_sessions' in [x.function.func_name for x in pub.cronjobs]
|
||||
assert 'apply_global_action_timeouts' in [x.function.__name__ for x in pub.cronjobs]
|
||||
assert 'clean_sessions' in [x.function.__name__ for x in pub.cronjobs]
|
||||
|
||||
def test_get_default_position():
|
||||
assert pub.get_default_position() == '50.84;4.36'
|
||||
|
|
Loading…
Reference in New Issue