-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♻️ Maintenance: Removed deprecation warnings and marks flaky tests #3085
♻️ Maintenance: Removed deprecation warnings and marks flaky tests #3085
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3085 +/- ##
========================================
+ Coverage 79.2% 81.0% +1.8%
========================================
Files 716 715 -1
Lines 30924 30922 -2
Branches 4035 4035
========================================
+ Hits 24494 25052 +558
+ Misses 5524 4989 -535
+ Partials 906 881 -25
Flags with carried forward coverage won't be shown. Click here to find out more.
|
../../.venv/lib/python3.9/site-packages/pytest_aiohttp/plugin.py:28 /home/crespo/devp/osparc-simcore/.venv/lib/python3.9/site-packages/pytest_aiohttp/plugin.py:28: DeprecationWarning: The 'asyncio_mode' is 'legacy', switching to 'auto' for the sake of pytest-aiohttp backward compatibility. Please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file. config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)
…ated, use instead settings_library.http_client_request
be5899e
to
1c5615a
Compare
…t at 0x7fa4f7aec850>. See https://www.python-httpx.org/async/\#opening-and-closing-clients for details.
…marked with '@pytest.mark.asyncio' but it is not an async function. Please remove asyncio marker. If the test is not marked explicitly, check for global markers applied via 'pytestmark'.
…yptography 37.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for taking care of this!
|
||
|
||
async def close_director(app: FastAPI) -> None: | ||
if director_client := app.state.director_api: | ||
await director_client.delete() | ||
client: Optional[DirectorApi] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the point of declaring this variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this way we can get autocompletion, search, etc in vscode
@@ -6,3 +6,6 @@ tag = False | |||
commit_args = --no-verify | |||
|
|||
[bumpversion:file:VERSION] | |||
|
|||
[tool:pytest] | |||
asyncio_mode = auto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this necessary? it is already in the makefile right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it? I need to double check then. There was a warning in the tests ...
../../.venv/lib/python3.9/site-packages/pytest_aiohttp/plugin.py:28
/home/crespo/devp/osparc-simcore/.venv/lib/python3.9/site-packages/pytest_aiohttp/plugin.py:28: DeprecationWarning: The 'asyncio_mode' is 'legacy', switching to 'auto' for the sake of pytest-aiohttp backward compatibility. Please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.
config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But yes, I see that the scripts in ci
and the makefile
recipes incorporate this option in CLI
That is strange then. Perhaps I was running pytest
manually via CLI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider my proposal
* fixed test * refactor test Co-authored-by: Andrei Neagu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What do these changes do?
Misc maintenance: Various minor issues in the repo.
Mostly warnings displayed during test or execution
test_context_aware_measure_parallelis
@GitHK please checkThe 'asyncio_mode' is 'legacy', switching to 'auto' for the sake of pytest-aiohttp backward compatibility. Please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file
by adding configuration insetup.cfg
models_library.settings
(now should usesettings_library
instead)paramiko
to avoid Warnings due to Blowfish deprecation in cryptographypostgres-database🧪
service-library🧪
web🧪
Legend: