fix: fix bring back the test description for func generation

This commit is contained in:
Florian Hönicke
2023-05-26 12:58:59 +02:00
parent df7e6f41cb
commit a7d5cec0bd
2 changed files with 17 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ BLACKLISTED_PACKAGES = [
'clearbit' # because of installation issues on latest version
]
UNNECESSARY_PACKAGES = [
'fastapi', 'uvicorn', 'starlette' # because the wrappers are used instead
'flask', 'fastapi', 'uvicorn', 'starlette' # because the wrappers are used instead
]
LANGUAGE_PACKAGES = [

View File

@@ -18,3 +18,18 @@ def test_package_parsing():
['gpt_3_5_turbo'],
]):
assert set(parsed) == set(expected)
def test_package_parsing_blacklist():
packages_json_string = '''\
[
["Flask"],
[],
[]
]'''
parsed_packages = Generator.process_packages_json_string(packages_json_string)
assert parsed_packages == [
[],
[],
[],
]