diff options
author | Frederick Muriuki Muriithi | 2022-11-14 14:45:11 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-11-14 14:45:11 +0300 |
commit | 06b9089e4db442767573bf1eead8b5c050437071 (patch) | |
tree | 8ba0804bf20a105015dc64bdfe631b8ddb0043ce /gn3/auth/authorisation/groups.py | |
parent | 673d68366008c582a74820ae66ade57998148cfb (diff) | |
download | genenetwork3-06b9089e4db442767573bf1eead8b5c050437071.tar.gz |
auth: Add test for `create_group`
* gn3/auth/authorisation/__init__.py: Add `authorised_p` decorator to be used
for all function requiring authorisation.
* gn3/auth/authorisation/groups.py: Add `create_group` function stub
* tests/unit/auth/conftest.py: Add fixture for test users
* tests/unit/auth/test_groups.py: Add tests for `create_group`
Diffstat (limited to 'gn3/auth/authorisation/groups.py')
-rw-r--r-- | gn3/auth/authorisation/groups.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gn3/auth/authorisation/groups.py b/gn3/auth/authorisation/groups.py new file mode 100644 index 0000000..8c8a87f --- /dev/null +++ b/gn3/auth/authorisation/groups.py @@ -0,0 +1,7 @@ +"""Handle the management of resource/user groups.""" + +from . import authorised_p + +@authorised_p +def create_group(group_name): + raise Exception("NOT IMPLEMENTED!") |