summaryrefslogtreecommitdiffstats
path: root/tests/test_command.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:26:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:26:28 +0000
commitbbbeb2d07d4f7fd0191032c219b40565fd83454f (patch)
tree3c08f1e09ed89a004867762ab40f3b610f6c0fa1 /tests/test_command.py
parentInitial commit. (diff)
downloadflit-bbbeb2d07d4f7fd0191032c219b40565fd83454f.tar.xz
flit-bbbeb2d07d4f7fd0191032c219b40565fd83454f.zip
Adding upstream version 3.8.0.upstream/3.8.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_command.py')
-rw-r--r--tests/test_command.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_command.py b/tests/test_command.py
new file mode 100644
index 0000000..1cec17d
--- /dev/null
+++ b/tests/test_command.py
@@ -0,0 +1,13 @@
+from subprocess import Popen, PIPE, STDOUT
+import sys
+
+def test_flit_help():
+ p = Popen([sys.executable, '-m', 'flit', '--help'], stdout=PIPE, stderr=STDOUT)
+ out, _ = p.communicate()
+ assert 'Build wheel' in out.decode('utf-8', 'replace')
+
+def test_flit_usage():
+ p = Popen([sys.executable, '-m', 'flit'], stdout=PIPE, stderr=STDOUT)
+ out, _ = p.communicate()
+ assert 'Build wheel' in out.decode('utf-8', 'replace')
+ assert p.poll() == 1