Skip to content

Commit

Permalink
Merge 0c51c74 into ad56d9e
Browse files Browse the repository at this point in the history
  • Loading branch information
vmotso committed Aug 20, 2018
2 parents ad56d9e + 0c51c74 commit 5514d96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions openregistry/assets/compound/includeme.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ def includeme(config, plugin_config=None):
config.add_assetType(Asset, at)

LOGGER.info("Included openregistry.assets.compound plugin", extra={'MESSAGE_ID': 'included_plugin'})

# add accreditation level
config.registry.accreditation['asset'][Asset._internal_type] = plugin_config['accreditation']
10 changes: 7 additions & 3 deletions openregistry/assets/compound/tests/fixtures.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
PARTIAL_MOCK_CONFIG = {
"assets.compound":{
"use_default":True,
"aliases":["compound1"]
"assets.compound": {
"use_default": True,
"aliases": ["compound1"],
"accreditation": {
"create": [1],
"edit": [2]
}
}
}

0 comments on commit 5514d96

Please sign in to comment.