Skip to content

Commit 53e54db

Browse files
committed
fixup! Move argument parsing to blurb._cli
1 parent 0272678 commit 53e54db

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

tests/test_blurb.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -323,15 +323,6 @@ def test_extract_next_filename(news_entry, expected_path, fs):
323323
assert path == expected_path
324324

325325

326-
def test_version(capfd):
327-
# Act
328-
blurb.version()
329-
330-
# Assert
331-
captured = capfd.readouterr()
332-
assert captured.out.startswith("blurb version ")
333-
334-
335326
def test_parse():
336327
# Arrange
337328
contents = ".. gh-issue: 123456\n.. section: IDLE\nHello world!"

tests/test_cli.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import blurb._cli
2+
3+
4+
def test_version(capfd):
5+
# Act
6+
blurb._cli.version()
7+
8+
# Assert
9+
captured = capfd.readouterr()
10+
assert captured.out.startswith("blurb version ")
11+
12+

0 commit comments

Comments
 (0)