Skip to content

Commit 277b3ed

Browse files
committed
chore: user factory function in make_user
1 parent 209369f commit 277b3ed

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

322-
323-
324-
325322
def test_bulk_add(self):
326323
self.server.version = "3.15"
327324
users = [
@@ -383,10 +380,9 @@ def test_bulk_add_no_name(self):
383380
def test_bulk_remove(self):
384381
self.server.version = "3.15"
385382
users = [
386-
TSC.UserItem("Alice"),
387-
TSC.UserItem("Bob"),
383+
make_user("Alice"),
384+
make_user("Bob", domain="example.com"),
388385
]
389-
users[1]._domain_name = "example.com"
390386
with requests_mock.mock() as m:
391387
m.post(f"{self.server.users.baseurl}/delete")
392388

0 commit comments

Comments
 (0)