Systemy_dialogowe/system/apimock.py

86 lines
1.7 KiB
Python
Raw Normal View History

2022-06-15 11:28:52 +02:00
repositoriesMock = ["repo1", "repo2", "repo3", "repo4"]
repositoriesPublicMock = ["repo1", "repo2", "repo3"]issuesMock = [
2022-06-14 21:51:44 +02:00
{
"name": "Issue 1",
"description": "Description of issue 1",
"status": "open"
},
{
"name": "Issue 2",
"description": "Description of issue 2",
"status": "closed"
}
]
pullRequestMock = [
{
"name": "pull request 1",
"description": "description 1",
"state": "open"
},
{
"name": "pull request 2",
"description": "description 2",
"state": "open"
}
]
notificationsMock = [
{
"name": "notification 1",
"description": "description 1"
},
{
"name": "notification 2",
"description": "description 2"
}
]
testMock = [
{
"name": "test1",
"description": "test1 description",
"status": "passed"
},
{
"name": "test2",
"description": "test2 description",
"status": "failed"
},
]
2022-06-15 11:28:52 +02:00
brefingMock = [
{
"name": "brefing1",
"description": "brefing1 description"
},
{
"name": "brefing2",
"description": "brefing2 description"
}
]
2022-06-14 21:51:44 +02:00
def createRepository(repositoryName):
pass
def deleteRepository(repositoryName):
pass
def listRepositories():
return repositoriesMock
def listPublicRepositories():
2022-06-15 11:28:52 +02:00
return repositoriesPublicMock
2022-06-14 21:51:44 +02:00
def listRepositoryIssues(repositoryName):
return issuesMock
def listRepositoryPullRequests(repositoryName):
return pullRequestMock
def listNotifications():
return notificationsMock
def listRepositoryTests(repositoryName):
return testMock
2022-06-15 11:28:52 +02:00
def getBrefing():
return brefingMock