Esempio n. 1
0
 def test_betaVersion(self):
     """
     :py:func:`~atcmd.get_version` returns a string version with beta tags,
     eg. `1.2.3b1`.
     """
     version = (1, 2, 3, 'b1')
     self.assertEqual(get_version(version), '1.2.3b1')
Esempio n. 2
0
 def test_regularVersion(self):
     """
     :py:func:`~atcmd.get_version` returns a string version without
     any beta tags, eg. `1.0.1`.
     """
     version = (1, 0, 1)
     self.assertEqual(get_version(version), '1.0.1')
Esempio n. 3
0
 def test_betaVersion(self):
     """
     :py:func:`~atcmd.get_version` returns a string version with beta tags,
     eg. `1.2.3b1`.
     """
     version = (1, 2, 3, 'b1')
     self.assertEqual(get_version(version), '1.2.3b1')
Esempio n. 4
0
 def test_regularVersion(self):
     """
     :py:func:`~atcmd.get_version` returns a string version without
     any beta tags, eg. `1.0.1`.
     """
     version = (1, 0, 1)
     self.assertEqual(get_version(version), '1.0.1')
Esempio n. 5
0
master_doc = 'index'

# General information about the project.
project = u'atcmd'
copyright = u'2015, Collab'
author = u'Collab'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = short_version()

# The full version, including alpha/beta/rc tags.
release = get_version()

# 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

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# List of patterns, relative to source directory, that match files and