Skip to content

Commit

Permalink
HH-188712 up dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
712u3 committed Aug 10, 2023
1 parent 3519693 commit 384f1b9
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 60 deletions.
2 changes: 1 addition & 1 deletion frontik/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def clear_header(self, name):
def clear_cookie(self, name, path="/", domain=None):
if name in self._mandatory_cookies:
del self._mandatory_cookies[name]
super().clear_cookie(name, path, domain)
super().clear_cookie(name, path=path, domain=domain)

def was_preprocessor_called(self, preprocessor):
return preprocessor.preprocessor_name in self._launched_preprocessors
Expand Down
87 changes: 43 additions & 44 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ aiohttp = '3.8.3'
jinja2 = '3.1.2'
lxml = '4.9.2'
pydantic = '>=1.10.5,<2'
tornado = '6.2.0'
http-client = {git = 'https://github.com/hhru/balancing-http-client.git', tag = '2.0.4'}
tornado = '6.3.2'
http-client = {git = 'https://github.com/hhru/balancing-http-client.git', tag = '2.1.0'}
python-consul2-hh = {git = 'https://github.com/hhru/python-consul2', tag = 'v0.2.9'}
opentelemetry-sdk = '1.17.0'
opentelemetry-api = '1.17.0'
Expand All @@ -34,8 +34,8 @@ pytest = '>=7.2.0'
pytest-asyncio = '0.21.1'
pycodestyle = '>=2.5.0'
requests = '>=2.0'
tox = '4.6.3'
lxml-asserts = '0.1.1'
tox = '4.6.4'
lxml-asserts = '0.1.2'
tornado-httpclient-mock = '0.2.3'
sentry-sdk = '1.26.0'
aiokafka = '0.8.1'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_asyncgroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


class TestAsyncGroup(unittest.TestCase):
def test_callbacks(self):
async def test_callbacks(self):
data = []

def callback2():
Expand Down
12 changes: 6 additions & 6 deletions tests/test_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_simple(self):
b"""<?xml version='1.0' encoding='utf-8'?>\n<a><b>\xd1\x82\xd0\xb5\xd1\x81\xd1\x82</b></a>"""
)

def test_future_simple(self):
async def test_future_simple(self):
d = Doc('a')
f = Future()
d.put(f)
Expand All @@ -39,23 +39,23 @@ def test_future_simple(self):

self.assertXmlEqual(d.to_etree_element(), b"""<?xml version='1.0' encoding='utf-8'?>\n<a><test/></a>""")

def test_future_etree_element(self):
async def test_future_etree_element(self):
d = Doc('a')
f = Future()
f.set_result(etree.Element('b'))
d.put(f)

self.assertXmlEqual(d.to_etree_element(), b"""<?xml version='1.0' encoding='utf-8'?>\n<a><b/></a>""")

def test_future_list(self):
async def test_future_list(self):
d = Doc('a')
f = Future()
f.set_result([etree.Comment('ccc'), etree.Element('bbb')])
d.put(f)

self.assertXmlEqual(d.to_etree_element(), """<?xml version='1.0'?>\n<a><!--ccc--><bbb/></a>""")

def test_failed_future(self):
async def test_failed_future(self):
d = Doc('a')
f = Future()
result = self.get_test_request_result()
Expand All @@ -67,7 +67,7 @@ def test_failed_future(self):
d.to_etree_element(), """<?xml version='1.0'?>\n<a><error reason="error" code="code"/></a>"""
)

def test_future_string_value(self):
async def test_future_string_value(self):
d = Doc('a')
f = Future()
result = self.get_test_request_result()
Expand Down Expand Up @@ -144,4 +144,4 @@ def get_test_request_result():
class FakeRequest:
name = 'name'

return RequestResult(FakeRequest(), None, False, False)
return RequestResult(FakeRequest(), None, None, False, False)
2 changes: 1 addition & 1 deletion tests/test_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_head(self):
self.assertEqual(response.headers['X-Foo'], 'Bar')
self.assertEqual(response.content, b'')

def test_head_url(self):
async def test_head_url(self):
response = frontik_test_app.get_page('handler/head_url')
self.assertEqual(b'OK', response.content)

Expand Down
6 changes: 3 additions & 3 deletions tests/test_json_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_future(self):
self.assertEqual(j.to_dict()['a'], 'b')
self.assertEqual(j.to_string(), """{"a": "b"}""")

def test_future_string_value(self):
async def test_future_string_value(self):
j = JsonBuilder()
f = Future()
result = TestDoc.get_test_request_result()
Expand All @@ -124,7 +124,7 @@ def test_future_string_value(self):

self.assertEqual(j.to_dict(), {})

def test_failed_future(self):
async def test_failed_future(self):
j = JsonBuilder()
f = Future()
result = TestDoc.get_test_request_result()
Expand All @@ -150,7 +150,7 @@ def test_nested_future(self):

self.assertEqual(j.to_string(), """{"nested": {"a": ["b", "c"]}}""")

def test_nested_future_error_node(self):
async def test_nested_future_error_node(self):
j = JsonBuilder()
f1 = Future()
f2 = Future()
Expand Down

0 comments on commit 384f1b9

Please sign in to comment.