Commit bdcd1571 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

test: several object with same package in config.

parent 0ac67fc8
Pipeline #7676 passed with stages
in 20 minutes and 53 seconds
......@@ -84,3 +84,19 @@ def test_issue_451_infinite_recursion(beacon):
assert refs_cfg.parent == beacon.root
assert beacon.root.parent is None
class DummyObject:
def __init__(self, name, config):
assert config.get("t_value")
def test_inherited_package(beacon):
import sys, os
try:
sys.path.append(os.path.dirname(__file__))
assert isinstance(beacon.get("dummy1"), DummyObject)
assert isinstance(beacon.get("dummy2"), DummyObject)
finally:
sys.path.pop()
- plugin: bliss
class: DummyObject
package: test_config
objects:
- name: dummy1
t_value: 10
- name: dummy2
t_value: bla
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment