Skip to content

Commit b63173a

Browse files
committed
chore: user factory function in make_user
1 parent 6563f2f commit b63173a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/test_user.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,6 @@ def test_create_users_csv(self):
333333
assert admin_map.get(site_role, "") == csv_user["admin"]
334334
assert publish_map[site_role] == int(csv_user["publish"])
335335

336-
337-
338-
339336
def test_bulk_add(self):
340337
self.server.version = "3.15"
341338
users = [
@@ -397,10 +394,9 @@ def test_bulk_add_no_name(self):
397394
def test_bulk_remove(self):
398395
self.server.version = "3.15"
399396
users = [
400-
TSC.UserItem("Alice"),
401-
TSC.UserItem("Bob"),
397+
make_user("Alice"),
398+
make_user("Bob", domain="example.com"),
402399
]
403-
users[1]._domain_name = "example.com"
404400
with requests_mock.mock() as m:
405401
m.post(f"{self.server.users.baseurl}/delete")
406402

0 commit comments

Comments
 (0)