Beispiel #1
0
def pytest_report_header(config):
    """Return information for the report header.

    This will log the version of Django.

    Args:
        config (object):
            The pytest configuration object.

    Returns:
        list of unicode:
        The report header entries to log.
    """
    return [
        'Review Board: %s' % reviewboard.get_version_string(),
        'Djblets: %s' % djblets.get_version_string(),
        'Django: %s' % django.get_version(),
    ]
Beispiel #2
0
# The master toctree document.
master_doc = 'contents'

# General information about the project.
project = u'Djblets Documentation'
copyright = u'2015-%s, Beanbag, Inc.' % datetime.now().year

# 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 = '.'.join(str(i) for i in djblets.__version_info__[:2])

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

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#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 documents that shouldn't be included in the build.
#unused_docs = []

# List of directories, relative to source directory, that shouldn't be searched
Beispiel #3
0
# The master toctree document.
master_doc = 'contents'

# General information about the project.
project = u'Djblets Documentation'
copyright = u'2015-%s, Beanbag, Inc.' % datetime.now().year

# 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 = '.'.join(str(i) for i in djblets.__version_info__[:2])

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

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#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 documents that shouldn't be included in the build.
#unused_docs = []

# List of directories, relative to source directory, that shouldn't be searched
Beispiel #4
0
from __future__ import print_function, unicode_literals

import os
import sys

if __name__ == '__main__':
    os.chdir(os.path.join(os.path.dirname(__file__), '..'))
    sys.path.insert(0, os.getcwd())

    import django
    import djblets
    import reviewboard

    print('Review Board %s' % reviewboard.get_version_string())
    print('Djblets %s' % djblets.get_version_string())
    print('Django %s' % django.__version__)
    print('Python %s.%s.%s' % sys.version_info[:3])
    print()

    # We're just wrapping the manage script. Both that script and the test
    # runner are expecting sys.argv to be set. Fake it here so we don't have
    # to shell out to another process just to get a proper set of arguments.
    sys.argv = [sys.argv[0], 'test', '--'] + sys.argv[1:]

    os.environ[str('RB_RUNNING_TESTS')] = str('1')
    os.environ[str('RBSSH_STORAGE_BACKEND')] = \
        str('reviewboard.ssh.storage.FileSSHStorage')

    from reviewboard.manage import run as run_manage
    run_manage()