Skip to content

Commit

Permalink
Merge branch 'main' into support/3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuch committed Nov 1, 2023
2 parents cfe9ae2 + 83f18a3 commit 90630ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/zato-cli/test/zato/test_openapi.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

"""
Copyright (C) 2021, Zato Source s.r.o. https://zato.io
Copyright (C) 2023, Zato Source s.r.o. https://zato.io
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
Expand Down Expand Up @@ -86,7 +86,7 @@ def _invoke_command(self, file_path:'str', require_ok:'bool'=True) -> 'RunningCo
command = get_zato_sh_command() # type: ignore

# Invoke enmasse ..
out = command('openapi', TestConfig.server_location,
out:'any_' = command('openapi', TestConfig.server_location,
'--exclude', '""', '--include', 'helpers.dataclass-service',
'--file', file_path,
'--verbose')
Expand Down Expand Up @@ -115,7 +115,7 @@ def test_openapi(self) -> 'None':

try:
# Invoke openapi to create a definition ..
self._invoke_command(file_path)
_ = self._invoke_command(file_path)

# .. read it back ..
f = open_r(file_path)
Expand Down Expand Up @@ -151,9 +151,9 @@ def test_openapi(self) -> 'None':

except ErrorReturnCode as e:

stdout = e.stdout # type: bytes
stdout = e.stdout # type: ignore
stdout = stdout.decode('utf8') # type: ignore
stderr = e.stderr
stderr = e.stderr # type: ignore

self._warn_on_error(stdout, stderr)
self.fail('Caught an exception while invoking openapi')
Expand All @@ -162,6 +162,6 @@ def test_openapi(self) -> 'None':
# ################################################################################################################################

if __name__ == '__main__':
main()
_ = main()

# ################################################################################################################################

0 comments on commit 90630ff

Please sign in to comment.