diff options
author | Frederick Muriuki Muriithi | 2024-09-16 15:14:40 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-16 15:19:21 -0500 |
commit | 3c47081696e5a81f70e4ed509267725bc904434c (patch) | |
tree | 0a5290f789c3765ac3b228af7b4eddb12acbec4d /tests/unit/auth/__init__.py | |
parent | e829074e99fd5bec033765d18d5efa55e1edce44 (diff) | |
download | gn-auth-3c47081696e5a81f70e4ed509267725bc904434c.tar.gz |
Pass cursor rather than connection to create_resource function
In order to decouple the `create_resource` function from the related
functions that assign roles to users, this commit changes the code to
pass in a cursor rather than a connection.
The cursor will be the same cursor passed into the role assignment
functions ensuring that the resource creation and role assignment
happen in a single transaction.
Diffstat (limited to 'tests/unit/auth/__init__.py')
0 files changed, 0 insertions, 0 deletions