diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-01-19 14:01:19 -0500 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-01-19 15:32:57 -0500 |
commit | faeeb3ac77be0d6da9bb7ee383c79f94496bc9de (patch) | |
tree | 92d70e84664458604ac69735a935145d110b35cf /tests/project | |
parent | 722a5b52800175d71f8f1204697e6c15d7009f33 (diff) | |
download | buildstream-faeeb3ac77be0d6da9bb7ee383c79f94496bc9de.tar.gz |
Adapted project test which loads a custom source to implement get_consistency()
Diffstat (limited to 'tests/project')
-rw-r--r-- | tests/project/data/plugins/sources/custom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/project/data/plugins/sources/custom.py b/tests/project/data/plugins/sources/custom.py index 2a5256014..c3cddb355 100644 --- a/tests/project/data/plugins/sources/custom.py +++ b/tests/project/data/plugins/sources/custom.py @@ -1,4 +1,4 @@ -from buildstream import Source +from buildstream import Source, Consistency class CustomSource(Source): @@ -13,8 +13,8 @@ class CustomSource(Source): def get_unique_key(self): return self.configuration - def consistent(self): - return True + def get_consistency(self): + return Consistency.INCONSISTENT def refresh(self, node): return False |