mirror of
https://github.com/langgenius/dify.git
synced 2026-09-24 23:22:26 +08:00
fix(agent): decouple roster from app quota (#37625)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from inspect import unwrap
|
||||
from inspect import getsource, unwrap
|
||||
from types import SimpleNamespace
|
||||
from typing import Any, cast
|
||||
|
||||
@@ -177,6 +177,11 @@ def test_agent_v2_console_routes_are_agent_id_first() -> None:
|
||||
assert route not in paths
|
||||
|
||||
|
||||
def test_agent_app_write_routes_do_not_reuse_app_billing_quota() -> None:
|
||||
for route_class in (AgentAppListApi, AgentAppCopyApi):
|
||||
assert '@cloud_edition_billing_resource_check("apps")' not in getsource(route_class)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def account_id() -> str:
|
||||
return "account-1"
|
||||
|
||||
Reference in New Issue
Block a user