Skip to content

Commit 425f3f2

Browse files
committed
add unit tests
1 parent 182749e commit 425f3f2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/test_generate.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from gitlabrng import generate_release_notes
2+
3+
4+
def test_generate_release_notes():
5+
# TODO: replace with a dedicated test repo
6+
notes = generate_release_notes(14117, url='https://gitlab.in2p3.fr')

tests/test_scripts.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from subprocess import run
2+
3+
run(['gitlab-release-notes', '14117', '--url', 'https://gitlab.in2p3.fr'])
4+

0 commit comments

Comments
 (0)