Skip to content

Commit 84b48d3

Browse files
committed
chore: user factory function in make_user
1 parent 6c2771c commit 84b48d3

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
@@ -403,9 +403,6 @@ def test_create_users_csv(self):
403403
assert admin_map.get(site_role, "") == csv_user["admin"]
404404
assert publish_map[site_role] == int(csv_user["publish"])
405405

406-
407-
408-
409406
def test_bulk_add(self):
410407
self.server.version = "3.15"
411408
users = [
@@ -467,10 +464,9 @@ def test_bulk_add_no_name(self):
467464
def test_bulk_remove(self):
468465
self.server.version = "3.15"
469466
users = [
470-
TSC.UserItem("Alice"),
471-
TSC.UserItem("Bob"),
467+
make_user("Alice"),
468+
make_user("Bob", domain="example.com"),
472469
]
473-
users[1]._domain_name = "example.com"
474470
with requests_mock.mock() as m:
475471
m.post(f"{self.server.users.baseurl}/delete")
476472

0 commit comments

Comments
 (0)