Skip to content

Commit

Permalink
Alter version number, really remove slow test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stef Bastiaansen committed Aug 31, 2017
1 parent 1055f1c commit dd03f66
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ To run all the tests, run

::

pytest
py.test

To run all the tests, except the slow ones, run

Expand Down
2 changes: 1 addition & 1 deletion biblio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
__email__ = '[email protected]'
__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'
6 changes: 3 additions & 3 deletions biblio/biblio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 0 additions & 4 deletions biblio/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit dd03f66

Please sign in to comment.