Exemple #1
0
    def setUp(self):
        super().setUp()

        self.creds = [{'username': '******'.format(i), 'password': '******'} for i in range(2)]
        self.users = [
            SystemUser.objects.create_user(c['username'], '{0}@{0}.upc.edu'.format(c['username']), c['password']) for c
            in self.creds]

        self.admin = crear_administrador(self.users[0])
        self.empr = crear_empresa(self.users[1])
        self.doc = crear_documento()
Exemple #2
0
from apps.soporte.factory import crear_entrada_faq, crear_documento

for i in range(30):
    crear_entrada_faq(i)
    crear_documento(i)