diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-01 19:41:45 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-01 20:21:48 -0400 |
commit | e54ab368e241c518015431251759013448196348 (patch) | |
tree | 4819f7cffe96f86b6fb88130b2fcb1231bac9666 /tests/sources/local.py | |
parent | 4778b595c979fe8ef02e4f4d0098894664383b3f (diff) | |
download | buildstream-e54ab368e241c518015431251759013448196348.tar.gz |
local source tests: Removed test case for get_unique_key()
This somewhat arbitrarily tests what the local source generates
as a unique key but is not really the requirements of a unique
key. This is also subject to change and is a pain to update.
Instead this is pretty much handled by the cache key test anyway.
Diffstat (limited to 'tests/sources/local.py')
-rw-r--r-- | tests/sources/local.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/sources/local.py b/tests/sources/local.py index 10da06e60..50cec0821 100644 --- a/tests/sources/local.py +++ b/tests/sources/local.py @@ -43,24 +43,6 @@ def test_preflight_fail(tmpdir, datafiles): @pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic')) -def test_unique_key(tmpdir, datafiles): - setup = Setup(datafiles, 'target.bst', tmpdir) - assert(setup.source.get_kind() == 'local') - - # Get the unique key - unique_key = setup.source._get_unique_key() - - # No easy way to test this, let's just check that the - # returned 'thing' is an array of tuples and the first element - # of the first tuple is the filename, and the second is not falsy - assert(isinstance(unique_key, list)) - assert(len(unique_key) == 1) - filename, digest = unique_key[0] - assert(filename == 'file.txt') - assert(digest) - - -@pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic')) def test_stage_file(tmpdir, datafiles): setup = Setup(datafiles, 'target.bst', tmpdir) assert(setup.source.get_kind() == 'local') |