Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthieu Boileau
nbcourse
Commits
9cb1f901
Commit
9cb1f901
authored
Dec 17, 2019
by
Matthieu Boileau
Browse files
Add a test_get_help_epilog test
parent
a3243af7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_nbcourse.py
View file @
9cb1f901
from
nbcourse.initialize
import
initialize
from
nbcourse.initialize
import
initialize
from
nbcourse.nbcourse
import
NbCourse
,
MyDoitMain
,
ClassTaskLoader
from
nbcourse.nbcourse
import
NbCourse
,
MyDoitMain
,
ClassTaskLoader
from
nbcourse.utils
import
get_functions
from
nbcourse.utils
import
get_functions
from
nbcourse
import
get_help_epilog
import
pytest
import
pytest
from
pathlib
import
Path
from
pathlib
import
Path
import
os
import
os
...
@@ -11,6 +12,11 @@ TESTS_PATH = Path(__file__).parent.absolute()
...
@@ -11,6 +12,11 @@ TESTS_PATH = Path(__file__).parent.absolute()
MINI_CONF
=
{
'nb'
:
{
'dir'
:
'sample'
}}
MINI_CONF
=
{
'nb'
:
{
'dir'
:
'sample'
}}
def
test_get_help_epilog
():
"""Test get_help_epilog function for CLI"""
get_help_epilog
()
@
pytest
.
fixture
@
pytest
.
fixture
def
create_project
(
tmpdir
):
def
create_project
(
tmpdir
):
"""Create a sample nbcourse project"""
"""Create a sample nbcourse project"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment