Example #1
0
def test_get_version():
    res = jmt.get_version(jmt.detect_release())
    assert res == 'dev' or len(res.split('.')) == 2
Example #2
0
#nbsphinx_prompt_width = '8ex'

# If window is narrower than this, input/output prompts are on separate lines:
#nbsphinx_responsive_width = '700px'

# -- The settings below this line are not specific to nbsphinx ------------

master_doc = 'toc-page'



linkcheck_ignore = [r'http://localhost:\d+/']

# -- Get version information from Git -------------------------------------

release = jmt.detect_release()
version  = jmt.get_version(release)


# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None


# -- Options for HTML output ----------------------------------------------

html_title = project # + ' version ' + release
# canonical url for documentation
Example #3
0
def test_detect_release():
    res = jmt.detect_release()
    assert res == 'dev' or len(res.split('.')) >= 2