summaryrefslogtreecommitdiff
path: root/tests/project
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-19 14:01:19 -0500
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-01-19 15:32:57 -0500
commitfaeeb3ac77be0d6da9bb7ee383c79f94496bc9de (patch)
tree92d70e84664458604ac69735a935145d110b35cf /tests/project
parent722a5b52800175d71f8f1204697e6c15d7009f33 (diff)
downloadbuildstream-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.py6
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