• Jérome Perrin's avatar
    ERP5TypeTestCase: rework user / passord generation · 6c0fa619
    Jérome Perrin authored
    Manager username and password are now available as class attributes.
    
    To prevent accidentally exposing access to instances when running tests,
    subclasses are not allowed to define these class attributes.
    
    Another significant changes is that we no longer have the same user in
    ERP5/acl_users and /acl_users, some tests were logging in as the root
    user in ways that never seemed intentional.
    
    Many tests have been updated to not generate manager user and use the
    existing one instead. When tests need to create users (for example
    users in the root acl_users), we try to delete the users afterward.
    
    ERP5TypeFunctionalTestCase was updated to use self.manager_username and
    manager_password instead of hardcoding ERP5TypeTestCase: and also some
    cleanups, the HTTP server is already started at this point and host/port
    were not used.
    6c0fa619
test.erp5.testPlanningBox.py 5.63 KB