mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-24 18:10:11 +00:00

Co-authored-by: Dexter Lee <dexter@acryl.io> Co-authored-by: Harshal Sheth <hsheth2@gmail.com> Co-authored-by: Ravindra Lanka <rlanka@acryl.io> Co-authored-by: Shirshanka Das <shirshanka@apache.org>
8 lines
170 B
Python
8 lines
170 B
Python
from click.testing import Result
|
|
|
|
|
|
def assert_result_ok(result: Result) -> None:
|
|
if result.exception:
|
|
raise result.exception
|
|
assert result.exit_code == 0
|