finalv1
This commit is contained in:
parent
a6afe30b7f
commit
c360f9bc00
@ -1,5 +1,5 @@
|
|||||||
repositoriesMock = ["repo1", "repo2", "repo3"]
|
repositoriesMock = ["repo1", "repo2", "repo3", "repo4"]
|
||||||
issuesMock = [
|
repositoriesPublicMock = ["repo1", "repo2", "repo3"]issuesMock = [
|
||||||
{
|
{
|
||||||
"name": "Issue 1",
|
"name": "Issue 1",
|
||||||
"description": "Description of issue 1",
|
"description": "Description of issue 1",
|
||||||
@ -46,6 +46,17 @@ testMock = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
brefingMock = [
|
||||||
|
{
|
||||||
|
"name": "brefing1",
|
||||||
|
"description": "brefing1 description"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "brefing2",
|
||||||
|
"description": "brefing2 description"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
def createRepository(repositoryName):
|
def createRepository(repositoryName):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -56,7 +67,7 @@ def listRepositories():
|
|||||||
return repositoriesMock
|
return repositoriesMock
|
||||||
|
|
||||||
def listPublicRepositories():
|
def listPublicRepositories():
|
||||||
return repositoriesMock
|
return repositoriesPublicMock
|
||||||
|
|
||||||
def listRepositoryIssues(repositoryName):
|
def listRepositoryIssues(repositoryName):
|
||||||
return issuesMock
|
return issuesMock
|
||||||
@ -69,3 +80,6 @@ def listNotifications():
|
|||||||
|
|
||||||
def listRepositoryTests(repositoryName):
|
def listRepositoryTests(repositoryName):
|
||||||
return testMock
|
return testMock
|
||||||
|
|
||||||
|
def getBrefing():
|
||||||
|
return brefingMock
|
||||||
|
@ -72,13 +72,17 @@ def generator_jezyka_nautalnego(frame, tactic, state, text):
|
|||||||
|
|
||||||
elif tactic[0] == False: #ASK
|
elif tactic[0] == False: #ASK
|
||||||
_, required_empty, act, req_args, opt_args = tactic
|
_, required_empty, act, req_args, opt_args = tactic
|
||||||
print('DEBUG: ', act, 'req', req_args, opt_args,sep = '\n')
|
# print('DEBUG: ', act, 'req', req_args, opt_args,sep = '\n')
|
||||||
print(f'Proszę podaj {required_empty[0]}')
|
if required_empty[0] == 'repo':
|
||||||
print()
|
print("Dodaj nazwę repozytorium na końcu komendy")
|
||||||
|
print("np. w nazwarepozytorium")
|
||||||
|
else:
|
||||||
|
print(f'Proszę podaj {required_empty[0]}')
|
||||||
|
print()
|
||||||
|
|
||||||
elif tactic[0] == True:
|
elif tactic[0] == True:
|
||||||
_, act, req_args, opt_args = tactic
|
_, act, req_args, opt_args = tactic
|
||||||
print('DEBUG: ', act, 'req', req_args, opt_args,sep = '\n')
|
# print('DEBUG: ', act, 'req', req_args, opt_args,sep = '\n')
|
||||||
|
|
||||||
if act == 'help':
|
if act == 'help':
|
||||||
print(random.choice(help))
|
print(random.choice(help))
|
||||||
|
@ -51,10 +51,10 @@ def taktyka_dialogu(state, frame):
|
|||||||
|
|
||||||
def validate_repo(repo):
|
def validate_repo(repo):
|
||||||
if repo not in listRepositories():
|
if repo not in listRepositories():
|
||||||
return 'repo not in listRepositories'
|
print('repo not in listRepositories')
|
||||||
if repo not in listPublicRepositories():
|
if repo not in listPublicRepositories():
|
||||||
return 'repo not in listPublicRepositories'
|
print('repo not in listPublicRepositories')
|
||||||
|
|
||||||
def long_thread(state):
|
def long_thread(state):
|
||||||
act = state['current_context']
|
act = state['current_context']
|
||||||
if act == None:
|
if act == None:
|
||||||
|
Loading…
Reference in New Issue
Block a user