Loading tests/sources/deb.py +2 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ def test_no_ref(cli, tmpdir, datafiles): assert cli.get_element_state(project, 'target.bst') == 'no reference' # Test that when I fetch a nonexistent URL, errors are handled gracefully. # Test that when I fetch a nonexistent URL, errors are handled gracefully and a retry is performed. @pytest.mark.skipif(HAVE_ARPY is False, reason="arpy is not available") @pytest.mark.datafiles(os.path.join(DATA_DIR, 'fetch')) def test_fetch_bad_url(cli, tmpdir, datafiles): Loading @@ -56,6 +56,7 @@ def test_fetch_bad_url(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) assert "Try #" in result.stderr result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) Loading tests/sources/tar.py +2 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ def test_no_ref(cli, tmpdir, datafiles): assert cli.get_element_state(project, 'target.bst') == 'no reference' # Test that when I fetch a nonexistent URL, errors are handled gracefully. # Test that when I fetch a nonexistent URL, errors are handled gracefully and a retry is performed. @pytest.mark.datafiles(os.path.join(DATA_DIR, 'fetch')) def test_fetch_bad_url(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) Loading @@ -66,6 +66,7 @@ def test_fetch_bad_url(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) assert "Try #" in result.stderr result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) Loading tests/sources/zip.py +2 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ def test_no_ref(cli, tmpdir, datafiles): assert cli.get_element_state(project, 'target.bst') == 'no reference' # Test that when I fetch a nonexistent URL, errors are handled gracefully. # Test that when I fetch a nonexistent URL, errors are handled gracefully and a retry is performed. @pytest.mark.datafiles(os.path.join(DATA_DIR, 'fetch')) def test_fetch_bad_url(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) Loading @@ -53,6 +53,7 @@ def test_fetch_bad_url(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) assert "Try #" in result.stderr result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) Loading Loading
tests/sources/deb.py +2 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ def test_no_ref(cli, tmpdir, datafiles): assert cli.get_element_state(project, 'target.bst') == 'no reference' # Test that when I fetch a nonexistent URL, errors are handled gracefully. # Test that when I fetch a nonexistent URL, errors are handled gracefully and a retry is performed. @pytest.mark.skipif(HAVE_ARPY is False, reason="arpy is not available") @pytest.mark.datafiles(os.path.join(DATA_DIR, 'fetch')) def test_fetch_bad_url(cli, tmpdir, datafiles): Loading @@ -56,6 +56,7 @@ def test_fetch_bad_url(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) assert "Try #" in result.stderr result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) Loading
tests/sources/tar.py +2 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ def test_no_ref(cli, tmpdir, datafiles): assert cli.get_element_state(project, 'target.bst') == 'no reference' # Test that when I fetch a nonexistent URL, errors are handled gracefully. # Test that when I fetch a nonexistent URL, errors are handled gracefully and a retry is performed. @pytest.mark.datafiles(os.path.join(DATA_DIR, 'fetch')) def test_fetch_bad_url(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) Loading @@ -66,6 +66,7 @@ def test_fetch_bad_url(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) assert "Try #" in result.stderr result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) Loading
tests/sources/zip.py +2 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ def test_no_ref(cli, tmpdir, datafiles): assert cli.get_element_state(project, 'target.bst') == 'no reference' # Test that when I fetch a nonexistent URL, errors are handled gracefully. # Test that when I fetch a nonexistent URL, errors are handled gracefully and a retry is performed. @pytest.mark.datafiles(os.path.join(DATA_DIR, 'fetch')) def test_fetch_bad_url(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) Loading @@ -53,6 +53,7 @@ def test_fetch_bad_url(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) assert "Try #" in result.stderr result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) Loading