diff options
Diffstat (limited to 'tests/sourcecache/staging.py')
-rw-r--r-- | tests/sourcecache/staging.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/sourcecache/staging.py b/tests/sourcecache/staging.py index 0f2f05891..940f1f1ab 100644 --- a/tests/sourcecache/staging.py +++ b/tests/sourcecache/staging.py @@ -64,7 +64,7 @@ def test_source_staged(tmpdir, cli, datafiles): # now check that the source is in the refs file, this is pretty messy but # seems to be the only way to get the sources? element = project.load_elements(["import-bin.bst"])[0] - element._initialize_state() + element._fetch(check_only=True) source = list(element.sources())[0] assert element._cached_sources() assert sourcecache.contains(source) @@ -99,7 +99,7 @@ def test_source_fetch(tmpdir, cli, datafiles): sourcecache = context.sourcecache element = project.load_elements(["import-dev.bst"])[0] - element._initialize_state() + element._fetch(check_only=True) source = list(element.sources())[0] assert element._cached_sources() @@ -133,7 +133,6 @@ def test_staged_source_build(tmpdir, datafiles, cli): project.ensure_fully_loaded() element = project.load_elements(["import-dev.bst"])[0] - element._initialize_state() # check consistency of the source assert not element._cached_sources() |