-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b17a3e7
commit 8984946
Showing
2 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
..._modules/dagster/dagster_tests/core_tests/execution_tests/test_asset_execution_context.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from dagster import AssetExecutionContext, OpExecutionContext | ||
|
||
|
||
def test_doc_strings(): | ||
ignores = [ | ||
"_abc_impl", | ||
"_events", | ||
"_output_metadata", | ||
"_pdb", | ||
"_step_execution_context", | ||
] | ||
for attr_name in dir(OpExecutionContext): | ||
if attr_name.startswith("__") or attr_name in ignores: | ||
continue | ||
if hasattr(AssetExecutionContext, attr_name): | ||
op_attr = getattr(OpExecutionContext, attr_name) | ||
asset_attr = getattr(AssetExecutionContext, attr_name) | ||
|
||
assert op_attr.__doc__ == asset_attr.__doc__ |