Last active
August 29, 2015 13:57
-
-
Save elyezer/9832727 to your computer and use it in GitHub Desktop.
Proposition of a way to create a kind of smoke test
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
# robottelo.some_module.py | |
from ddt import data as ddt_data | |
def data(func, *args): | |
if some_var: | |
return ddt_data(func, random.choice(args)) | |
else: | |
return ddt_data(func, *args) | |
# test_something.py | |
# remove from ddt import data | |
# add the bellow | |
from robottelo.some_module import data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exactly what I was thing :)