mirror of
https://github.com/Cian-H/invenio-config-iform.git
synced 2025-12-22 21:11:57 +00:00
how to:implementing generator for RecordIp.
This commit is contained in:
17
tests/test_permissions.py
Normal file
17
tests/test_permissions.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2020 Mojib Wali.
|
||||
#
|
||||
# invenio-config-tugraz is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the MIT License; see LICENSE file for more
|
||||
# details.
|
||||
|
||||
from invenio_config_tugraz.permissions import RecordIp
|
||||
|
||||
|
||||
def test_recordip():
|
||||
generator = RecordIp()
|
||||
|
||||
assert generator.needs() == []
|
||||
assert generator.excludes() == []
|
||||
assert generator.query_filter().to_dict() == {'match_all': {}}
|
||||
Reference in New Issue
Block a user