Пример #1
0
    def execute_reporters():
        """Whether to execute plugins implementing :class:`GNAThub.Reporter`.

        --runners-only and --reporters-only are mutually exclusive. Runners
        should be executed if --reporters-only is specified or if none is
        specified.

        :rtype: boolean
        """
        return GNAThub.reporters_only() or not GNAThub.runners_only()
Пример #2
0
    def execute_reporters():
        """Whether to execute plugins implementing :class:`GNAThub.Reporter`.

        --runners-only and --reporters-only are mutually exclusive. Runners
        should be executed if --reporters-only is specified or if none is
        specified.

        :rtype: boolean
        """
        return GNAThub.reporters_only() or not GNAThub.runners_only()
Пример #3
0
    """

    return os.path.relpath(path, BASEDIR)


assertTrue(os.path.isdir(GNAThub.root()))
assertEqual(relpath(GNAThub.root()), os.path.join('obj', 'gnathub'))

assertTrue(os.path.isdir(GNAThub.logs()))
assertEqual(relpath(GNAThub.logs()), os.path.join('obj', 'gnathub', 'logs'))

assertTrue(GNAThub.quiet())
assertFalse(GNAThub.verbose())
assertFalse(GNAThub.dry_run())
assertTrue(GNAThub.runners_only())
assertFalse(GNAThub.reporters_only())

assertTrue(os.path.isfile(GNAThub.database()))
assertEqual(
    relpath(GNAThub.database()),
    os.path.join('obj', 'gnathub', 'gnathub.db')
)

# Default for jobs number is 0
assertEqual(GNAThub.jobs(), 0)

# The plugin list is expected to be empty
assertEqual(len(GNAThub.plugins()), 0)

# We ensure that the core and extra plugins directories exist
repos = GNAThub.repositories()