Skip to content

Commit 77a17fc

Browse files
committed
chore: user factory function in make_user
1 parent 6e1670c commit 77a17fc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/test_user.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,6 @@ def test_create_users_csv(self):
317317
assert admin_map.get(site_role, "") == csv_user["admin"]
318318
assert publish_map[site_role] == int(csv_user["publish"])
319319

320-
321-
322-
323320
def test_bulk_add(self):
324321
self.server.version = "3.15"
325322
users = [
@@ -381,10 +378,9 @@ def test_bulk_add_no_name(self):
381378
def test_bulk_remove(self):
382379
self.server.version = "3.15"
383380
users = [
384-
TSC.UserItem("Alice"),
385-
TSC.UserItem("Bob"),
381+
make_user("Alice"),
382+
make_user("Bob", domain="example.com"),
386383
]
387-
users[1]._domain_name = "example.com"
388384
with requests_mock.mock() as m:
389385
m.post(f"{self.server.users.baseurl}/delete")
390386

0 commit comments

Comments
 (0)