Page MenuHomeElementl

[core][tests] Shared RunCoordinator test suite (2/n)
AbandonedPublic

Authored by sidkmenon on May 21 2021, 8:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 28, 5:33 PM
Unknown Object (File)
Apr 26 2023, 9:55 AM
Unknown Object (File)
Apr 24 2023, 10:27 PM
Unknown Object (File)
Mar 11 2023, 12:24 AM
Unknown Object (File)
Mar 7 2023, 11:03 PM
Unknown Object (File)
Feb 24 2023, 10:59 AM
Unknown Object (File)
Feb 22 2023, 12:08 PM
Unknown Object (File)
Feb 1 2023, 10:51 PM

Details

Summary

Adding a shared RunCoordinator test suite in anticipation for a Run Attribution example (using a Run Coordinator).

Test Plan

bk

Diff Detail

Repository
R1 dagster
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

sidkmenon held this revision as a draft.
johann added a subscriber: jordansanders.

lgtm, @jordansanders might have thoughts on pytest patterns

python_modules/dagster/dagster_tests/core_tests/run_coordinator_tests/test_default_run_coordinator.py
8

Nitpick, but I think RunCoordinatorTests is a clearer class name than TestRunCoordinator. To me, TestRunCoordinator implies that it's a run coordinator meant to be used in tests (similar to FakeRunCoordiantor or MockRunCoordinator) whereas RunCoordinatorTests implies that it's the tests for a run coordinator.

python_modules/dagster/dagster_tests/core_tests/run_coordinator_tests/test_queued_run_coordinator.py
68

If we need to overload the only test in the base class, are we really getting much benefit from the base class? I tend to think tests are a place where explicit can often be better than DRY. https://thoughtbot.com/blog/the-case-for-wet-tests

python_modules/dagster/dagster_tests/core_tests/run_coordinator_tests/utils/__init__.py
6

What was isort doing? I'd prefer to let it do its thing rather than enforcing our own ordering if possible.

sidkmenon marked an inline comment as done.