diff --git a/README.rst b/README.rst index 49c9e96..425f365 100644 --- a/README.rst +++ b/README.rst @@ -43,7 +43,7 @@ To run all the tests, run :: - pytest + py.test To run all the tests, except the slow ones, run diff --git a/biblio/__init__.py b/biblio/__init__.py index 68187a3..b44e1b1 100644 --- a/biblio/__init__.py +++ b/biblio/__init__.py @@ -24,6 +24,6 @@ __email__ = 'stef.bastiaansen@ugent.be' __copyright__ = 'Copyright (c) 2016 LT3 - UGent' __license__ = 'Apache License 2.0' -__version__ = '1.0.0' +__version__ = '0.2.2' __url__ = 'https://github.com/megasnort/python-ugent-biblio' __description__ = 'A Python wrapper around the UGent Biblio API' diff --git a/biblio/biblio.py b/biblio/biblio.py index 1755649..0544cde 100644 --- a/biblio/biblio.py +++ b/biblio/biblio.py @@ -165,10 +165,10 @@ def search(query=None): """ url = BASE_URL + 'publication/export' + params = {} + if query: - params = {'q': query} - else: - params = {} + params['q'] = query return get_result(url, params) diff --git a/biblio/tests/test_api.py b/biblio/tests/test_api.py index b00ac8a..65a709f 100644 --- a/biblio/tests/test_api.py +++ b/biblio/tests/test_api.py @@ -36,10 +36,6 @@ def test_valid_response(self): def test_search_response_is_a_list(self): assert isinstance(search('111'), list) - @pytest.mark.slow - def test_search_without_an_argument_returns_everything(self): - assert len(search()) > 100 - def test_publications_by_person_response_is_a_list(self): assert isinstance(publications_by_person(self.VALID_UGENT_ID), list) diff --git a/doc/conf.py b/doc/conf.py index 5810d1a..aeaf598 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -63,9 +63,9 @@ # built documents. # # The short X.Y version. -version = u'1.0' +version = u'0.2' # The full version, including alpha/beta/rc tags. -release = u'1.0.0' +release = u'0.2.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index f02a834..bacb6c1 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def readme(): setup(name='ugentbiblio', - version='1.0.0', + version='0.2.2', description='Connector to the API of Ghent University Academic Bibliography', long_description=readme(), classifiers=[