Files @ d162de13caec
Branch filter:

Location: kallithea/rhodecode/tests/functional/test_admin_ldap_settings.py

Marcin Kuzminski
memory optimizations, call diffs only when needed ie. after checking for binary, and cutoff limit.
reduces memory consumption a lot on binary files ! Additionally checking for binary before the size gives little more performance as well
1
2
3
4
5
6
7
from rhodecode.tests import *

class TestLdapSettingsController(TestController):

    def test_index(self):
        response = self.app.get(url(controller='admin/ldap_settings', action='index'))
        # Test response...