mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-20 07:04:20 +01:00
⏪ fix: fix bring back the test description for func generation
This commit is contained in:
@@ -53,7 +53,7 @@ BLACKLISTED_PACKAGES = [
|
|||||||
'clearbit' # because of installation issues on latest version
|
'clearbit' # because of installation issues on latest version
|
||||||
]
|
]
|
||||||
UNNECESSARY_PACKAGES = [
|
UNNECESSARY_PACKAGES = [
|
||||||
'fastapi', 'uvicorn', 'starlette' # because the wrappers are used instead
|
'flask', 'fastapi', 'uvicorn', 'starlette' # because the wrappers are used instead
|
||||||
]
|
]
|
||||||
|
|
||||||
LANGUAGE_PACKAGES = [
|
LANGUAGE_PACKAGES = [
|
||||||
|
|||||||
@@ -18,3 +18,18 @@ def test_package_parsing():
|
|||||||
['gpt_3_5_turbo'],
|
['gpt_3_5_turbo'],
|
||||||
]):
|
]):
|
||||||
assert set(parsed) == set(expected)
|
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 == [
|
||||||
|
[],
|
||||||
|
[],
|
||||||
|
[],
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user