We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ba764d commit 9d89eb3Copy full SHA for 9d89eb3
tests/test_location_service.py
@@ -8,7 +8,7 @@ async def get_all(self):
8
"""
9
Gets and returns all of the locations.
10
11
- return [True, True]
+ return [1]
12
13
async def get(self, id): # pylint: disable=redefined-builtin,invalid-name
14
@@ -27,9 +27,10 @@ def test_location_service_invalid():
27
BadLocationService()
28
29
30
-def test_location_service_invalid():
+@pytest.mark.asyncio
31
+async def test_location_service_invalid():
32
"""Test for location service interface valid class."""
33
good_loc_service = GoodLocationService()
- assert all(good_loc_service.get_all())
34
- assert good_loc_service.get(1) == 1
+ assert [1] == await good_loc_service.get_all()
35
+ assert 1 == await good_loc_service.get(1)
36
0 commit comments