Skip to content

Test#73

Merged
JulianKimmig merged 20 commits intomasterfrom
test
Dec 5, 2025
Merged

Test#73
JulianKimmig merged 20 commits intomasterfrom
test

Conversation

@JulianKimmig
Copy link
Member

No description provided.

…nfiguration management and update FuncNodesExternalWorker to utilize it
Fallback to a running loop when available, warn and skip when none is
usable, and suppress deprecation warnings around event loop lookup.
Allow external worker configs to omit non-export fields during export.
Track data paths, validate nodeshelf assignment, and emit updates on set.
Provide optional export flag in serialize for packaging worker state.
Ensure external worker shelves are refreshed and references cleaned when
workers restart, passing data paths to instances and forcing export mode
when saving worker state.
Switch tests to pytest fixtures with pytest-funcnodes setup/teardown.
Add coverage for nodeshelf refreshes and export filtering of configs.
Modify worker_kwargs and worker_case fixtures to dynamically generate UUIDs based on the test name. Adjust test assertions and remove unnecessary try-finally blocks for cleaner code. Update test decorators to support no prefix for specific tests.
… test structure

Convert tests in test_client_connection.py from unittest to pytest, utilizing fixtures for logger setup. Enhance test readability and maintainability by removing the IsolatedAsyncioTestCase class and directly defining async test functions.
…tures

Transform tests in test_socketworker.py from unittest to pytest, implementing fixtures for setup and teardown. This change enhances test organization and readability by removing the IsolatedAsyncioTestCase class and defining async test functions directly. Additionally, the use of pytest-funcnodes decorators streamlines the test execution process.
Eliminate the unused pytestmark variable from test_socketworker.py to clean up the code and improve clarity. This change contributes to maintaining a tidy test suite as part of the ongoing migration to pytest.
Transform tests in test_ws_worker.py from unittest to pytest, utilizing fixtures for setup and teardown. This change enhances test organization and readability by removing the IsolatedAsyncioTestCase class and defining async test functions directly. The use of pytest-funcnodes decorators further streamlines the test execution process.
Transform tests in test_loops.py from unittest to pytest, utilizing fixtures for setup and teardown. This change enhances test organization and readability by removing the IsolatedAsyncioTestCase class and defining async test functions directly. The use of pytest-funcnodes decorators further streamlines the test execution process.
- await cancelled loop tasks and give async_call tasks a timed grace period, even when stop runs inside the manager loop
- guard async scheduling with closed/running loop checks to avoid unawaited coroutine warnings
- add write/drain helper for socket worker to handle coroutine-returning mocks and real writers
- clear stale worker process/runstate files on init and migrate external worker tests to pytest fixtures
…ker initialization

- Updated FuncNodesExternalWorker to accept an optional name parameter during initialization.
- Modified LocalWorkerLookupLoop and Worker classes to pass the new name and config parameters when starting local workers.
- Enhanced add_local_worker method to support additional configuration options for external workers.
@JulianKimmig JulianKimmig merged commit 3f0499d into master Dec 5, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant