Skip to content

Commit 33c95a2

Browse files
committed
:eggs: 🎡 ready for its first release
1 parent 994f005 commit 33c95a2

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ releases:
44
- changes:
55
- action: first release
66
details:
7-
- what a feat!
7+
- what a feat! files tests are available.
88
version: 0.0.1
9-
date:
9+
date: 02.09.2020

moban-ansible.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ contact: "[email protected]"
55
company: "C.W."
66
version: "0.0.1"
77
current_version: "0.0.1"
8-
release: "0.0.0"
8+
release: "0.0.1"
99
copyright_year: 2020
1010
license: newbsd
1111
dependencies: []

tests/test_files.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import sys
2+
from io import StringIO
3+
from unittest.mock import patch
4+
from nose.tools import eq_
5+
6+
7+
def test_stdout():
8+
test_args = ["moban", "-t", "{{'tests' is directory}}"]
9+
with patch.object(sys, "argv", test_args):
10+
with patch("sys.stdout", new_callable=StringIO) as fake_stdout:
11+
from moban.main import main
12+
13+
main()
14+
eq_(fake_stdout.getvalue(), "True\n")

0 commit comments

Comments
 (0)