summaryrefslogtreecommitdiff
path: root/tests/format
diff options
context:
space:
mode:
authorBenjamin Schubert <bschubert15@bloomberg.net>2019-11-28 17:50:51 +0000
committerBenjamin Schubert <bschubert15@bloomberg.net>2020-01-16 16:33:19 +0000
commit5cb2442e789d6b302f7d261ba5d2a2ad5366d7c2 (patch)
tree172dcee0a766d70fb80c0b41d086c873a0268b44 /tests/format
parent3be6d07753599ef54b9e80ac066571632e217ce2 (diff)
downloadbuildstream-5cb2442e789d6b302f7d261ba5d2a2ad5366d7c2.tar.gz
source.py: Remove 'get_consistency' completely
This is not needed now that we have 'is_resolved' and 'is_cached'. We can therefore drop all calling places and implementations of it.
Diffstat (limited to 'tests/format')
-rw-r--r--tests/format/project/plugin-no-load-ref/plugins/noloadref.py5
-rw-r--r--tests/format/project/plugin-preflight-error/errorplugin/preflighterror.py5
2 files changed, 2 insertions, 8 deletions
diff --git a/tests/format/project/plugin-no-load-ref/plugins/noloadref.py b/tests/format/project/plugin-no-load-ref/plugins/noloadref.py
index 5d44cd5c7..e2fe0ac46 100644
--- a/tests/format/project/plugin-no-load-ref/plugins/noloadref.py
+++ b/tests/format/project/plugin-no-load-ref/plugins/noloadref.py
@@ -1,4 +1,4 @@
-from buildstream import Source, Consistency
+from buildstream import Source
# Just a dummy plugin which does not support the new load_ref() method.
@@ -15,9 +15,6 @@ class NoLoadRefSource(Source):
def get_unique_key(self):
return {}
- def get_consistency(self):
- return Consistency.CACHED
-
def get_ref(self):
return None
diff --git a/tests/format/project/plugin-preflight-error/errorplugin/preflighterror.py b/tests/format/project/plugin-preflight-error/errorplugin/preflighterror.py
index 3fa8afb93..db2895f8b 100644
--- a/tests/format/project/plugin-preflight-error/errorplugin/preflighterror.py
+++ b/tests/format/project/plugin-preflight-error/errorplugin/preflighterror.py
@@ -1,4 +1,4 @@
-from buildstream import Source, SourceError, Consistency
+from buildstream import Source, SourceError
class PreflightErrorSource(Source):
@@ -13,9 +13,6 @@ class PreflightErrorSource(Source):
def get_unique_key(self):
return {}
- def get_consistency(self):
- return Consistency.CACHED
-
def get_ref(self):
return None