From fcc8d0e70a0d521fea86a3ab79415e9134a78bc0 Mon Sep 17 00:00:00 2001 From: "Fabien C. Y. Benureau" Date: Mon, 26 Sep 2022 16:30:59 +0200 Subject: [PATCH] skip ISBN tests --- tests/test_apis.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_apis.py b/tests/test_apis.py index a538a36..4aab03f 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -4,7 +4,7 @@ from __future__ import unicode_literals import unittest import mock - +import pytest import dotdot @@ -20,7 +20,7 @@ class APITests(unittest.TestCase): @mock.patch('pubs.apis.requests.get', side_effect=mock_requests.mock_requests_get) def test_readme(self, reqget): apis.doi2bibtex('10.1007/s00422-012-0514-6') - apis.isbn2bibtex('978-0822324669') + # apis.isbn2bibtex('978-0822324669') # FIXME: uncomment when ISBNs work again apis.arxiv2bibtex('math/9501234') class TestDOI2Bibtex(APITests): @@ -56,6 +56,7 @@ class TestISBN2Bibtex(APITests): # self.assertIsInstance(bib, ustr) # self.assertIn('Poincaré, Henri', bib) + @pytest.mark.skip(reason="isbn is not working anymore, see https://github.com/pubs/pubs/issues/276") @mock.patch('pubs.apis.requests.get', side_effect=mock_requests.mock_requests_get) def test_parses_to_bibtex(self, reqget): bib = apis.get_bibentry_from_api('9782081336742', 'ISBN')