summaryrefslogtreecommitdiff
path: root/tests/end_to_end/__main__.py
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2019-11-09 20:49:05 +0100
committerlouiz’ <louiz@louiz.org>2019-11-09 20:50:36 +0100
commitefb695be6bdf833d204ff0cd0fbec559dcca9bb1 (patch)
tree4208ba57b56bb065ee2d1d7fc21096873f953743 /tests/end_to_end/__main__.py
parent1736641368395440d69d68fcd701754bec0b22ec (diff)
downloadbiboumi-efb695be6bdf833d204ff0cd0fbec559dcca9bb1.tar.gz
biboumi-efb695be6bdf833d204ff0cd0fbec559dcca9bb1.tar.bz2
biboumi-efb695be6bdf833d204ff0cd0fbec559dcca9bb1.tar.xz
biboumi-efb695be6bdf833d204ff0cd0fbec559dcca9bb1.zip
e2e: Implicitely include the handshake in all tests
Instead of having to write it manually everytime
Diffstat (limited to 'tests/end_to_end/__main__.py')
-rw-r--r--tests/end_to_end/__main__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index ea42acb..e85a4f2 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -292,7 +292,10 @@ def get_scenarios(test_path, provided_scenar_names):
conf = "basic"
if hasattr(mod, "conf"):
conf = mod.conf
- scenarios.append(Scenario(module_name, mod.scenario, conf))
+ # Every scenario needs to start with the handshake sequence.
+ # Instead of repeating it everytime, we add it implicitely. This
+ # is done here.
+ scenarios.append(Scenario(module_name, (sequences.handshake(),) + mod.scenario, conf))
return scenarios