Skip to content
This repository has been archived by the owner on Jul 19, 2020. It is now read-only.

Commit

Permalink
Develop/main (#11)
Browse files Browse the repository at this point in the history
* extend tests for RUZ.person_lessons

* [skip ci] move to v1.0.1
  • Loading branch information
hell03end authored Oct 28, 2017
1 parent 3ae6872 commit d00b965
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
setup(
name="hse_ruz",
packages=packages,
version="1.0.1rc1",
version="1.0.1",
description="Python wrapper for HSE RUZ API",
long_description=open(os.path.join(os.path.dirname(__file__),
"README.rst")).read(),
Expand All @@ -23,7 +23,7 @@
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
Expand Down
6 changes: 5 additions & 1 deletion tests/test_RUZ.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def setup_method(self):

def _test_simple_endpoint(self, response: object,
resp_type: type=list) -> None:
assert response
assert response is not None
assert isinstance(response, resp_type)
del response

Expand Down Expand Up @@ -231,6 +231,10 @@ def test_person_lessons(self):
with pytest.raises(ValueError) as excinfo:
self.api.person_lessons(incorrect_email, check_online=True)
assert excinfo
for lecturer_id in (24577, 19000, 24187, 23867, 22349):
self._test_simple_endpoint(
self.api.person_lessons(lecturer_id=lecturer_id, safe=False)
)

def test_groups(self):
self._test_endpoint_with_kwargs((
Expand Down

0 comments on commit d00b965

Please sign in to comment.