Skip to content

Commit 38c7e03

Browse files
committed
Adding superuser fixture
1 parent a93aab0 commit 38c7e03

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/conftest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class GlobalData:
1616
root: str = None
1717
password: str = None
1818
secret: str = None
19-
token: str = None
19+
token: JwtToken = None
2020
sys_db_name: str = "_system"
2121
username: str = generate_username()
2222
cluster: bool = False
@@ -157,6 +157,13 @@ async def sys_db(arango_client, sys_db_name, basic_auth_root):
157157
)
158158

159159

160+
@pytest_asyncio.fixture
161+
async def superuser(arango_client, sys_db_name, basic_auth_root, token):
162+
return await arango_client.db(
163+
sys_db_name, auth_method="superuser", token=token, verify=False
164+
)
165+
166+
160167
@pytest_asyncio.fixture
161168
async def db(arango_client, sys_db, username, password, cluster):
162169
tst_db_name = generate_db_name()

0 commit comments

Comments
 (0)