diff options
Diffstat (limited to 'tests/sources/project_key_test/plugins/sources/key-test.py')
-rw-r--r-- | tests/sources/project_key_test/plugins/sources/key-test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/sources/project_key_test/plugins/sources/key-test.py b/tests/sources/project_key_test/plugins/sources/key-test.py index 428846a3e..30256929c 100644 --- a/tests/sources/project_key_test/plugins/sources/key-test.py +++ b/tests/sources/project_key_test/plugins/sources/key-test.py @@ -11,7 +11,10 @@ class KeyTest(Source): pass def configure(self, node): - self.ref = node.get_bool("ref", False) + if node.get_scalar("ref", None).is_none(): + self.ref = None + else: + self.ref = True def get_unique_key(self): assert self.ref |