From 2036a1b85523343f80270bd173f0949bf55547fd Mon Sep 17 00:00:00 2001 From: Jakub Adamski Date: Wed, 8 Jun 2022 12:38:10 +0200 Subject: [PATCH] changed return data --- github/apimock.py | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/github/apimock.py b/github/apimock.py index d502402..781c8e8 100644 --- a/github/apimock.py +++ b/github/apimock.py @@ -56,32 +56,22 @@ testMock = [ ] def createRepository(repositoryName): - print("Creating repository: " + repositoryName) - return True + pass def deleteRepository(repositoryName): - print("Deleting repository: " + repositoryName) - return True + pass def listRepositories(): - print("Listing repositories: " + str(repositoriesMock)) - return True + return repositoriesMock def listRepositoryIssues(repositoryName): - print("Listing issues for repository: " + repositoryName) - print(issuesMock) - return True + return issuesMock def listRepositoryPullRequests(repositoryName): - print("Listing pull requests for repository: " + repositoryName) - print(pullRequestMock) - return True + return pullRequestMock def listNotifications(): - print("Listing notifications: " + str(notificationsMock)) - return True + return notificationsMock def listRepositoryTests(repositoryName): - print("Listing tests for repository: " + repositoryName) - print(testMock) - return True \ No newline at end of file + return testMock \ No newline at end of file