Jump to >


class TestTool(repository)[source]

Bases: reviewboard.scmtools.git.GitTool

scmtool_id = u'test'[source]
name = u'Test'[source]
diffs_use_absolute_paths = False[source]
supports_post_commit = True[source]
supports_history = False[source]
get_commits(branch=None, start=None)[source]
get_file(path, revision, **kwargs)[source]

Return a file from the repository.

This testing tool allows for special paths that allow callers to optionally define the data to return and the encoding to use for that data.

If the path starts with /data:, then what comes after will be returned as data (with a newline appended to the data). Otherwise, a standard Hello, world!\n will be returned.

If the path ends with ;encoding=..., then whatever is returned will be encoded in the specified encoding type.

  • path (unicode) – The path to retrieve, optionally with custom data and an encoding.
  • revision (unicode, unused) – The revision to retrieve. This is ignored.
  • **kwargs (dict, unused) – Additional keyword arguments for the request.

The resulting file contents.

Return type:


file_exists(path, revision, **kwargs)[source]
classmethod check_repository(path, *args, **kwargs)[source]
class TestToolSupportsPendingChangeSets(repository)[source]

Bases: reviewboard.testing.scmtool.TestTool

scmtool_id = u'test-supports-pending-changesets'[source]
supports_pending_changesets = True[source]
get_changeset(changesetid, allow_empty=False)[source]