From 2a6888263b534199b07d65b7de3a15d2f0215c83 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Sun, 28 Jul 2019 19:43:50 +0200
Subject: [PATCH] [test] #241: `silkaj` not found, call "poetry run bin/silkaj"
 in the test to access Silkaj

---
 tests/test_end_to_end.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/test_end_to_end.py b/tests/test_end_to_end.py
index dcbc3d14..1ea84e37 100644
--- a/tests/test_end_to_end.py
+++ b/tests/test_end_to_end.py
@@ -1,17 +1,19 @@
 from subprocess import check_output
 
+silkaj = ["poetry", "run", "bin/silkaj"]
+
 
 def test_info():
     """tests 'silkaj info' returns a number of members"""
 
-    output = check_output(["silkaj", "info"])
+    output = check_output(silkaj + ["info"])
     assert "Number of members" in output.decode()
 
 
 def test_wot():
     """tests 'silkaj wot' returns a number of members"""
 
-    output = check_output(["silkaj", "wot", "moul"]).decode()
+    output = check_output(silkaj + ["wot", "moul"]).decode()
     assert "moul (GfKER…) from block #0-E3B0C44298FC1…" in output
     assert "received_expire" in output
     assert "received" in output
@@ -22,7 +24,7 @@ def test_wot():
 def test_id():
     """tests 'silkaj id' certification on gtest"""
 
-    output = check_output(["silkaj", "--gtest", "id", "elois"]).decode()
+    output = check_output(silkaj + ["--gtest", "id", "elois"]).decode()
     assert "D7CYHJXjaH4j7zRdWngUbsURPnSnjsCYtvo6f8dvW3C" in output
 
 
@@ -30,7 +32,7 @@ def test_amount():
     """tests 'silkaj amount' command on gtest"""
 
     output = check_output(
-        ["silkaj", "--gtest", "balance", "3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj"]
+        silkaj + ["--gtest", "balance", "3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj"]
     ).decode()
     assert "Total amount of: 3dnbnYY9i2bHMQUGyFp5GVvJ2wBkVpus31cDJA5cfRpj" in output
     assert "Total Relative     =" in output
-- 
GitLab