Skip to content

Commit b90e362

Browse files
mnunziophanak-sap
authored andcommitted
feat: clean useless code
1 parent 5998c03 commit b90e362

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

tests/conftest.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""PyTest Fixtures"""
2-
import asyncio
32
import logging
43
import os
4+
55
import pytest
6+
67
from pyodata.v2.model import schema_from_xml, Types
78

89

@@ -140,10 +141,3 @@ def type_date_time():
140141
@pytest.fixture
141142
def type_date_time_offset():
142143
return Types.from_name('Edm.DateTimeOffset')
143-
144-
145-
@pytest.fixture
146-
def event_loop():
147-
loop = asyncio.new_event_loop()
148-
yield loop
149-
loop.run_until_complete(asyncio.sleep(0.1, loop=loop))

tests/test_async_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""PyOData Client tests"""
2-
from unittest.mock import patch, AsyncMock
2+
from unittest.mock import patch
33

44
import aiohttp
55
import pytest
@@ -106,7 +106,8 @@ async def test_client_custom_configuration(mock_warning, aiohttp_client, metadat
106106
})
107107

108108
app = web.Application()
109-
app.router.add_get('/$metadata', generate_metadata_response(headers={'content-type': 'application/xml'},body=metadata))
109+
app.router.add_get('/$metadata',
110+
generate_metadata_response(headers={'content-type': 'application/xml'}, body=metadata))
110111
client = await aiohttp_client(app)
111112

112113
with pytest.raises(PyODataException) as e_info:

0 commit comments

Comments
 (0)