We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b9face commit 4546eafCopy full SHA for 4546eaf
pifpaf/tests/test_cli.py
@@ -147,6 +147,14 @@ def test_global_urls_variable_old_format(self):
147
b"\"memcached://localhost:11217;memcached://localhost:11218\";",
148
env[b"export PIFPAF_URLS"])
149
150
+ def test_list_command(self):
151
+ c = subprocess.Popen(["pifpaf", "list"],
152
+ bufsize=0,
153
+ stdout=subprocess.PIPE)
154
+ (stdout, stderr) = c.communicate()
155
+ self.assertEqual(0, c.wait())
156
+ self.assertIn(b'memcached', stdout)
157
+
158
def test_non_existing_command(self):
159
# Keep PATH to just the one set by tox to run pifpaf
160
self.useFixture(fixtures.EnvironmentVariable(
0 commit comments