File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from typing import Set , List
2- from osbot_fast_api .api .schemas .Schema__Fast_API__Route import Schema__Fast_API__Route
2+ from osbot_fast_api .api .schemas .routes . Schema__Fast_API__Route import Schema__Fast_API__Route
33from osbot_utils .type_safe .primitives .domains .identifiers .safe_str .Safe_Str__Id import Safe_Str__Id
44from osbot_utils .type_safe .Type_Safe import Type_Safe
55
Original file line number Diff line number Diff line change 11from typing import List , Type
2- from osbot_fast_api .api .schemas .enums .Enum__Fast_API__Route__Type import Enum__Fast_API__Route__Type
2+ from osbot_fast_api .api .schemas .enums .Enum__Fast_API__Route__Type import Enum__Fast_API__Route__Type
33from osbot_utils .type_safe .primitives .domains .common .safe_str .Safe_Str__Text import Safe_Str__Text
44from osbot_fast_api .client .schemas .Schema__Endpoint__Param import Schema__Endpoint__Param
55from osbot_utils .type_safe .Type_Safe import Type_Safe
66from osbot_utils .type_safe .primitives .domains .http .enums .Enum__Http__Method import Enum__Http__Method
77from osbot_utils .type_safe .primitives .domains .identifiers .safe_str .Safe_Str__Id import Safe_Str__Id
8- from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Prefix import Safe_Str__Fast_API__Route__Prefix
9- from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Tag import Safe_Str__Fast_API__Route__Tag
8+ from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Prefix import Safe_Str__Fast_API__Route__Prefix
9+ from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Tag import Safe_Str__Fast_API__Route__Tag
1010
1111
1212class Schema__Fast_API__Route (Type_Safe ): # Single route information
Original file line number Diff line number Diff line change 1- from typing import List
2- from osbot_fast_api .api .schemas .Schema__Fast_API__Route import Schema__Fast_API__Route
3- from osbot_utils .type_safe .Type_Safe import Type_Safe
1+ from typing import List
2+ from osbot_fast_api .api .schemas .routes . Schema__Fast_API__Route import Schema__Fast_API__Route
3+ from osbot_utils .type_safe .Type_Safe import Type_Safe
44
55
66class Schema__Fast_API__Routes__Collection (Type_Safe ): # Collection of routes
Original file line number Diff line number Diff line change 11from typing import List , Union
22from pydantic_core import PydanticUndefined
3- from osbot_fast_api .api .schemas .Schema__Fast_API__Route import Schema__Fast_API__Route
4- from osbot_fast_api .api .schemas .Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
5- from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Tag import Safe_Str__Fast_API__Route__Tag
3+ from osbot_fast_api .api .schemas .routes . Schema__Fast_API__Route import Schema__Fast_API__Route
4+ from osbot_fast_api .api .schemas .routes . Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
5+ from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Tag import Safe_Str__Fast_API__Route__Tag
66from osbot_utils .type_safe .primitives .domains .http .enums .Enum__Http__Method import Enum__Http__Method
77from osbot_utils .utils .Http import url_join_safe
88from osbot_fast_api .client .schemas .Schema__Endpoint__Param import Schema__Endpoint__Param
99from osbot_utils .type_safe .type_safe_core .collections .Type_Safe__List import Type_Safe__List
10- from osbot_fast_api .api .schemas .consts .consts__Fast_API import FAST_API_DEFAULT_ROUTES_PATHS
10+ from osbot_fast_api .api .schemas .consts .consts__Fast_API import FAST_API_DEFAULT_ROUTES_PATHS
1111from osbot_utils .type_safe .Type_Safe import Type_Safe
1212from fastapi import FastAPI
1313from fastapi .routing import APIWebSocketRoute , APIRoute , APIRouter
Original file line number Diff line number Diff line change 1313from osbot_fast_api .api .routes .Fast_API__Routes import Fast_API__Routes
1414from osbot_fast_api .client .Fast_API__Route__Extractor import Fast_API__Route__Extractor
1515from osbot_utils .type_safe .primitives .domains .http .enums .Enum__Http__Method import Enum__Http__Method
16- from osbot_fast_api .api .schemas .Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
17- from osbot_fast_api .api .schemas .enums .Enum__Fast_API__Route__Type import Enum__Fast_API__Route__Type
16+ from osbot_fast_api .api .schemas .routes . Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
17+ from osbot_fast_api .api .schemas .enums .Enum__Fast_API__Route__Type import Enum__Fast_API__Route__Type
1818
1919
2020class test_Fast_API__Route__Extraction__integration (TestCase ): # Integration tests for complete route extraction workflow
Original file line number Diff line number Diff line change 44from fastapi import FastAPI , APIRouter , Path
55from fastapi .routing import APIWebSocketRoute
66from osbot_fast_api .api .decorators .route_path import route_path
7- from osbot_fast_api .api .schemas .Schema__Fast_API__Config import Schema__Fast_API__Config
7+ from osbot_fast_api .api .schemas .Schema__Fast_API__Config import Schema__Fast_API__Config
88from osbot_utils .type_safe .primitives .domains .identifiers .safe_str .Safe_Str__Id import Safe_Str__Id
99from osbot_utils .testing .__ import __
1010from osbot_fast_api .client .Fast_API__Route__Extractor import Fast_API__Route__Extractor
1515from starlette .staticfiles import StaticFiles
1616from osbot_fast_api .api .Fast_API import Fast_API
1717from osbot_fast_api .api .routes .Fast_API__Routes import Fast_API__Routes
18- from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Prefix import Safe_Str__Fast_API__Route__Prefix
18+ from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Prefix import Safe_Str__Fast_API__Route__Prefix
1919from osbot_utils .type_safe .primitives .domains .http .enums .Enum__Http__Method import Enum__Http__Method
20- from osbot_fast_api .api .schemas .Schema__Fast_API__Route import Schema__Fast_API__Route
21- from osbot_fast_api .api .schemas .Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
22- from osbot_fast_api .api .schemas .enums .Enum__Fast_API__Route__Type import Enum__Fast_API__Route__Type
20+ from osbot_fast_api .api .schemas .routes . Schema__Fast_API__Route import Schema__Fast_API__Route
21+ from osbot_fast_api .api .schemas .routes . Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
22+ from osbot_fast_api .api .schemas .enums .Enum__Fast_API__Route__Type import Enum__Fast_API__Route__Type
2323
2424
2525class test_Fast_API__Route__Extractor (TestCase ):
Original file line number Diff line number Diff line change 55from osbot_utils .type_safe .Type_Safe import Type_Safe
66from osbot_utils .type_safe .primitives .domains .identifiers .safe_str .Safe_Str__Id import Safe_Str__Id
77from osbot_utils .utils .Objects import base_classes
8- from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Prefix import Safe_Str__Fast_API__Route__Prefix
9- from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Tag import Safe_Str__Fast_API__Route__Tag
10- from osbot_utils .type_safe .primitives .domains .http .enums .Enum__Http__Method import Enum__Http__Method
11- from osbot_fast_api .api .schemas .enums .Enum__Fast_API__Route__Type import Enum__Fast_API__Route__Type
12- from osbot_fast_api .api .schemas .Schema__Fast_API__Route import Schema__Fast_API__Route
8+ from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Prefix import Safe_Str__Fast_API__Route__Prefix
9+ from osbot_fast_api .api .schemas .safe_str .Safe_Str__Fast_API__Route__Tag import Safe_Str__Fast_API__Route__Tag
10+ from osbot_utils .type_safe .primitives .domains .http .enums .Enum__Http__Method import Enum__Http__Method
11+ from osbot_fast_api .api .schemas .enums .Enum__Fast_API__Route__Type import Enum__Fast_API__Route__Type
12+ from osbot_fast_api .api .schemas .routes . Schema__Fast_API__Route import Schema__Fast_API__Route
1313
1414
1515class test_Schema__Fast_API__Route (TestCase ):
Original file line number Diff line number Diff line change 1- from unittest import TestCase
2- from osbot_utils .testing .__ import __
3- from osbot_utils .type_safe .Type_Safe import Type_Safe
4- from osbot_utils .type_safe .type_safe_core .collections .Type_Safe__List import Type_Safe__List
5- from osbot_utils .utils .Objects import base_classes
6- from osbot_fast_api .api .schemas .Schema__Fast_API__Route import Schema__Fast_API__Route
7- from osbot_fast_api .api .schemas .Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
8- from osbot_utils .type_safe .primitives .domains .http .enums .Enum__Http__Method import Enum__Http__Method
9- from osbot_fast_api .api .schemas .enums .Enum__Fast_API__Route__Type import Enum__Fast_API__Route__Type
1+ from unittest import TestCase
2+ from osbot_utils .testing .__ import __
3+ from osbot_utils .type_safe .Type_Safe import Type_Safe
4+ from osbot_utils .type_safe .type_safe_core .collections .Type_Safe__List import Type_Safe__List
5+ from osbot_utils .utils .Objects import base_classes
6+ from osbot_fast_api .api .schemas .routes . Schema__Fast_API__Route import Schema__Fast_API__Route
7+ from osbot_fast_api .api .schemas .routes . Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
8+ from osbot_utils .type_safe .primitives .domains .http .enums .Enum__Http__Method import Enum__Http__Method
9+ from osbot_fast_api .api .schemas .enums .Enum__Fast_API__Route__Type import Enum__Fast_API__Route__Type
1010
1111
1212class test_Schema__Fast_API__Routes__Collection (TestCase ):
You can’t perform that action at this time.
0 commit comments