mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-07 09:58:34 +00:00
test(extensions): make marker coverage platform-neutral
This commit is contained in:
parent
0b81858378
commit
a521cf31d9
@ -1,3 +1,4 @@
|
|||||||
|
import sys
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from nanobot.agent.skills import SkillsLoader
|
from nanobot.agent.skills import SkillsLoader
|
||||||
@ -137,12 +138,14 @@ def test_python_dependencies_project_distribution_identity_and_active_markers()
|
|||||||
dependencies = _python_dependencies(
|
dependencies = _python_dependencies(
|
||||||
(
|
(
|
||||||
"httpx[http2]>=0.27",
|
"httpx[http2]>=0.27",
|
||||||
"win32-setctime>=1; sys_platform == 'win32'",
|
f"platform-package>=1; sys_platform == '{sys.platform}'",
|
||||||
|
"inactive-package>=1; sys_platform == '__never__'",
|
||||||
"packaging>=24; python_version >= '3.11'",
|
"packaging>=24; python_version >= '3.11'",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
assert [(item.name, item.specifier) for item in dependencies] == [
|
assert [(item.name, item.specifier) for item in dependencies] == [
|
||||||
("httpx", ">=0.27"),
|
("httpx", ">=0.27"),
|
||||||
|
("platform-package", ">=1"),
|
||||||
("packaging", ">=24"),
|
("packaging", ">=24"),
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user