Skip to content
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

Catch assertions in flow_test and print their values. #145

Open
OfirMos opened this issue Dec 29, 2021 · 0 comments
Open

Catch assertions in flow_test and print their values. #145

OfirMos opened this issue Dec 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@OfirMos
Copy link
Contributor

OfirMos commented Dec 29, 2021

Currently when asset fails in a flow_test in RTS the message isn't printed, it can be catched and printed:
nose package implements this, see in one of the replies here:
https://stackoverflow.com/questions/1308607/python-assert-improved-introspection-of-failure

Example:
test_ts_range:test_agg_avg
[ERROR]
Unhandled exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/RLTest/main.py", line 543, in _runTest
fn()
File "/home/RedisTimeSeries/tests/flow/test_ts_range.py", line 251, in test_agg_avg
assert actual_result == [[0, b'1.7976931348623157E308']]
AssertionError

@OfirMos OfirMos added the enhancement New feature or request label Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant