summaryrefslogtreecommitdiff
path: root/tests/frontend/project/sources/fetch_source.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/frontend/project/sources/fetch_source.py')
-rw-r--r--tests/frontend/project/sources/fetch_source.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/frontend/project/sources/fetch_source.py b/tests/frontend/project/sources/fetch_source.py
index d634adfa3..60b4ba95d 100644
--- a/tests/frontend/project/sources/fetch_source.py
+++ b/tests/frontend/project/sources/fetch_source.py
@@ -69,6 +69,9 @@ class FetchSource(Source):
def is_resolved(self):
return True
+ def is_cached(self) -> bool:
+ return self.get_consistency() == Consistency.CACHED
+
def get_consistency(self):
if not os.path.exists(self.output_file):
return Consistency.RESOLVED