From ac0bc4c0ef755ba5577b4c34356171397f3f3908 Mon Sep 17 00:00:00 2001 From: Phillip Smyth Date: Fri, 30 Nov 2018 11:33:16 +0000 Subject: Added tests for .bst suffix and completions buildcheckout.py: Add mandatory .bst suffix tests completions.py: Add test for fail on invalid suffix Added required files for testing integration/source-determinism.py: renamed test elements to end with .bst loader/__init__.py: initialised context properly with load and a message handler --- tests/integration/source-determinism.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/integration/source-determinism.py') diff --git a/tests/integration/source-determinism.py b/tests/integration/source-determinism.py index a970c7dc9..fa12593df 100644 --- a/tests/integration/source-determinism.py +++ b/tests/integration/source-determinism.py @@ -33,7 +33,7 @@ def create_test_directory(*path, mode=0o644): @pytest.mark.skipif(IS_LINUX and not HAVE_BWRAP, reason='Only available with bubblewrap on Linux') def test_deterministic_source_umask(cli, tmpdir, datafiles, kind, integration_cache): project = str(datafiles) - element_name = 'list' + element_name = 'list.bst' element_path = os.path.join(project, 'elements', element_name) repodir = os.path.join(str(tmpdir), 'repo') sourcedir = os.path.join(project, 'source') @@ -108,7 +108,7 @@ def test_deterministic_source_local(cli, tmpdir, datafiles, integration_cache): """Only user rights should be considered for local source. """ project = str(datafiles) - element_name = 'test' + element_name = 'test.bst' element_path = os.path.join(project, 'elements', element_name) sourcedir = os.path.join(project, 'source') -- cgit v1.2.1