mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-24 09:04:19 +01:00
🧪 test: level 2
This commit is contained in:
@@ -399,6 +399,7 @@ metas:
|
||||
print_colored('',
|
||||
f'Could not debug the Microservice with any of the approaches: {packages} giving up.',
|
||||
'red')
|
||||
return -1
|
||||
continue
|
||||
print(f'''
|
||||
You can now run or deploy your microservice:
|
||||
@@ -406,7 +407,7 @@ gptdeploy run --path {self.microservice_root_path}
|
||||
gptdeploy deploy --path {self.microservice_root_path}
|
||||
'''
|
||||
)
|
||||
break
|
||||
return 0
|
||||
|
||||
def summarize_error(self, error):
|
||||
conversation = self.gpt_session.get_conversation()
|
||||
|
||||
@@ -179,7 +179,7 @@ Name all packages which need to be installed via `apt-get install` in above Dock
|
||||
|
||||
Note that you must not list apt-get packages that are already installed in the Dockerfile.
|
||||
Note that openai does not require any apt-get packages.
|
||||
Output the packages that need to me placed at {apt_get_packages} as a white space separated list:
|
||||
Output the packages that need to me placed at {{apt_get_packages}} as a white space separated list:
|
||||
'''
|
||||
)
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ def test_generation_level_0(tmpdir):
|
||||
str(tmpdir) + 'microservice',
|
||||
'gpt-3.5-turbo'
|
||||
)
|
||||
generator.generate()
|
||||
assert generator.generate() == 0
|
||||
|
||||
|
||||
def test_generation_level_1(tmpdir):
|
||||
@@ -44,7 +44,7 @@ But hey, at least SOMEONE's enjoying their lunch. #officelife\'''',
|
||||
str(tmpdir) + 'microservice',
|
||||
'gpt-3.5-turbo'
|
||||
)
|
||||
generator.generate()
|
||||
assert generator.generate() == 0
|
||||
|
||||
|
||||
def test_generation_level_2(tmpdir):
|
||||
@@ -63,7 +63,7 @@ def test_generation_level_2(tmpdir):
|
||||
str(tmpdir) + 'microservice',
|
||||
'gpt-3.5-turbo'
|
||||
)
|
||||
generator.generate()
|
||||
assert generator.generate() == 0
|
||||
|
||||
#Create a wrapper around google called Joogle. It modifies the page summary preview text of the search results to insert the word Jina as much as possible.
|
||||
|
||||
@@ -98,7 +98,7 @@ Create an audio file of the summarized text.
|
||||
str(tmpdir) + 'microservice',
|
||||
'gpt-3.5-turbo'
|
||||
)
|
||||
generator.generate()
|
||||
assert generator.generate() == 0
|
||||
|
||||
@pytest.mark.skip(reason="not possible")
|
||||
def test_generation_level_4(tmpdir):
|
||||
@@ -136,4 +136,4 @@ The output is the image with the joke on it.''',
|
||||
str(tmpdir) + 'microservice',
|
||||
'gpt-3.5-turbo'
|
||||
)
|
||||
generator.generate()
|
||||
assert generator.generate() == 0
|
||||
|
||||
Reference in New Issue
Block a user