bitbucket.tests.private Package

private Package

issue Module

class bitbucket.tests.private.issue.IssueAuthenticatedMethodsTest(methodName='runTest')[source]

Bases: bitbucket.tests.private.private.AuthenticatedBitbucketTest

Testing bitbucket.issue methods.

test_CRUD()[source]

Test issue create/read/update/delete.

test_all()[source]

Test get all issues.

issue_comment Module

class bitbucket.tests.private.issue_comment.IssueCommentAuthenticatedMethodsTest(methodName='runTest')[source]

Bases: bitbucket.tests.private.private.AuthenticatedBitbucketTest

Testing bitbucket.issue.comments methods.

setUp()[source]

Add an issue to the test repository and save it’s id.

tearDown()[source]

Delete the issue.

test_CRUD()[source]

Test issue comment create/read/update/delete.

test_all()[source]

Test get all issue comments.

private Module

class bitbucket.tests.private.private.AuthenticatedBitbucketTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Bitbucket test base class for authenticated methods.

setUp()[source]

Creating a new authenticated Bitbucket...

tearDown()[source]

Destroying the Bitbucket...

class bitbucket.tests.private.private.BitbucketAuthenticatedMethodsTest(methodName='runTest')[source]

Bases: bitbucket.tests.private.private.AuthenticatedBitbucketTest

Testing Bitbucket annonymous methods.

test_get_branches()[source]

Test get_branches.

test_get_tags()[source]

Test get_tags.

repository Module

class bitbucket.tests.private.repository.ArchiveRepositoryAuthenticatedMethodsTest(methodName='runTest')[source]

Bases: bitbucket.tests.private.private.AuthenticatedBitbucketTest

Testing bitbucket.repository.archive method, which require custom setUp and tearDown methods.

test_archive require a commit to download the repository.

setUp()[source]

Clone the test repo locally, then add and push a commit.

tearDown()[source]

Delete the git folder.

test_archive()[source]

Test repository download as archive.

class bitbucket.tests.private.repository.RepositoryAuthenticatedMethodsTest(methodName='runTest')[source]

Bases: bitbucket.tests.private.private.AuthenticatedBitbucketTest

Testing bitbucket.repository methods.

test_all()[source]

Test get all repositories.

test_create()[source]

Test repository creation.

test_delete()[source]

Test repository deletion.

test_get()[source]

Test get a repository.

test_update()[source]

Test repository update.

bitbucket.tests.private.repository.skipUnlessHasGit(f)[source]

This decorator pass the test if git is not found.

service Module

class bitbucket.tests.private.service.ServiceAuthenticatedMethodsTest(methodName='runTest')[source]

Bases: bitbucket.tests.private.private.AuthenticatedBitbucketTest

Testing bitbucket.service methods.

test_CRUD()[source]

Test service create/read/update/delete.

test_all()[source]

Test get all services.

settings Module

Set USERNAME and PASSWORD or USERNAME, CONSUMER_KEY and CONSUMER_SECRET in bitbucket/tests/private/settings.py if you want to run tests for private methods.

ssh Module

class bitbucket.tests.private.ssh.SSHAuthenticatedMethodsTest(methodName='runTest')[source]

Bases: bitbucket.tests.private.private.AuthenticatedBitbucketTest

Testing bitbucket.ssh methods.

test_CRUD()[source]

Test ssh create/read/delete.

test_all()[source]

Test get all sshs.