[REM] various: useless passwords on test users
These blow up rather dramatically if the corresponding modules are installed after auth_password_policy.
This commit is contained in:
@@ -28,7 +28,6 @@ class TestAccountVoucher(common.TransactionCase):
|
||||
voucher_user = self.env['res.users'].create({
|
||||
'name': 'Voucher Accountant',
|
||||
'login': 'vacc',
|
||||
'password': 'vacc',
|
||||
'email': 'accountant@yourcompany.com',
|
||||
'company_id': self.env.ref('base.main_company').id,
|
||||
'groups_id': [(6, 0, [
|
||||
|
||||
@@ -78,22 +78,18 @@ class TestLead2opportunity2win(TestCrmCases):
|
||||
test_res_user_01 = self.env['res.users'].create({
|
||||
'name': 'Test user A',
|
||||
'login': 'tua@example.com',
|
||||
'new_password': 'tua'
|
||||
})
|
||||
test_res_user_02 = self.env['res.users'].create({
|
||||
'name': 'Test user B',
|
||||
'login': 'tub@example.com',
|
||||
'new_password': 'tub'
|
||||
})
|
||||
test_res_user_03 = self.env['res.users'].create({
|
||||
'name': 'Test user C',
|
||||
'login': 'tuc@example.com',
|
||||
'new_password': 'tuc'
|
||||
})
|
||||
test_res_user_04 = self.env['res.users'].create({
|
||||
'name': 'Test user D',
|
||||
'login': 'tud@example.com',
|
||||
'new_password': 'tud'
|
||||
})
|
||||
|
||||
# Salesman also creates lead so giving access rights of salesman.
|
||||
|
||||
@@ -24,7 +24,6 @@ class TestEquipment(TransactionCase):
|
||||
name="Normal User/Employee",
|
||||
company_id=self.main_company.id,
|
||||
login="emp",
|
||||
password="emp",
|
||||
email="empuser@yourcompany.example.com",
|
||||
groups_id=[(6, 0, [res_user.id])]
|
||||
))
|
||||
@@ -33,7 +32,6 @@ class TestEquipment(TransactionCase):
|
||||
name="Equipment Manager",
|
||||
company_id=self.main_company.id,
|
||||
login="hm",
|
||||
password="hm",
|
||||
email="eqmanager@yourcompany.example.com",
|
||||
groups_id=[(6, 0, [res_manager.id])]
|
||||
))
|
||||
|
||||
@@ -42,7 +42,6 @@ class TestEquipmentMulticompany(TransactionCase):
|
||||
'name': 'Equipment Manager',
|
||||
'company_id': company_a.id,
|
||||
'login': 'e_equipment_manager',
|
||||
'password': 'e_equipment_manager',
|
||||
'email': 'eqmanager@yourcompany.example.com',
|
||||
'groups_id': [(6, 0, [group_manager.id])],
|
||||
'company_ids': [(6, 0, [company_a.id, company_b.id])]
|
||||
@@ -53,7 +52,6 @@ class TestEquipmentMulticompany(TransactionCase):
|
||||
'name': 'Normal User/Employee',
|
||||
'company_id': company_b.id,
|
||||
'login': 'emp',
|
||||
'password': 'emp',
|
||||
'email': 'empuser@yourcompany.example.com',
|
||||
'groups_id': [(6, 0, [group_user.id])],
|
||||
'company_ids': [(6, 0, [company_b.id])]
|
||||
|
||||
@@ -25,14 +25,12 @@ class TestRepair(AccountingTestCase):
|
||||
self.res_repair_user = self.ResUsers.create({
|
||||
'name': 'Repair User',
|
||||
'login': 'maru',
|
||||
'password': 'maru',
|
||||
'email': 'repair_user@yourcompany.com',
|
||||
'groups_id': [(6, 0, [self.res_group_user.id])]})
|
||||
|
||||
self.res_repair_manager = self.ResUsers.create({
|
||||
'name': 'Repair Manager',
|
||||
'login': 'marm',
|
||||
'password': 'marm',
|
||||
'email': 'repair_manager@yourcompany.com',
|
||||
'groups_id': [(6, 0, [self.res_group_manager.id])]})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user