Skip to content

Commit b43998f

Browse files
committed
wired up Fast_API__Contract__Extractor
1 parent f3bc573 commit b43998f

7 files changed

Lines changed: 526 additions & 534 deletions

docs/dev/briefs/v0.25.1__dual-layer-api-contract-pattern.md renamed to docs/dev/briefs/client-development/v0.25.1__dual-layer-api-contract-pattern.md

File renamed without changes.

docs/dev/briefs/v0.26.1__developing-fastapi-service-clients.md renamed to docs/dev/briefs/client-development/v0.26.1__developing-fastapi-service-clients.md

File renamed without changes.

docs/dev/briefs/v0.26.9__fastapi-service-client-implementation-guide.md renamed to docs/dev/briefs/client-development/v0.26.9__fastapi-service-client-implementation-guide.md

File renamed without changes.

osbot_fast_api/client/Fast_API__Contract__Extractor.py

Lines changed: 269 additions & 269 deletions
Large diffs are not rendered by default.

tests/unit/client/test_Fast_API__Contract__Extractor.py

Lines changed: 242 additions & 242 deletions
Large diffs are not rendered by default.

tests/unit/client/test_Fast_API__Route__Extraction__integration.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
import time
2-
from typing import List
3-
4-
import pytest
2+
from typing import List
53
from unittest import TestCase
64
from fastapi import FastAPI, APIRouter
7-
from osbot_utils.utils.Dev import pprint
8-
9-
from osbot_utils.testing.__ import __
10-
11-
from osbot_utils.type_safe.Type_Safe import Type_Safe
12-
13-
from osbot_utils.type_safe.primitives.domains.identifiers.safe_str.Safe_Str__Id import Safe_Str__Id
14-
5+
from osbot_utils.testing.__ import __
6+
from osbot_utils.type_safe.Type_Safe import Type_Safe
7+
from osbot_utils.type_safe.primitives.domains.identifiers.safe_str.Safe_Str__Id import Safe_Str__Id
158
from osbot_fast_api.api.Fast_API import Fast_API
16-
from osbot_fast_api.api.decorators.route_path import route_path
9+
from osbot_fast_api.api.decorators.route_path import route_path
1710
from osbot_fast_api.api.routes.Fast_API__Routes import Fast_API__Routes
18-
from osbot_fast_api.client.Fast_API__Route__Extractor import Fast_API__Route__Extractor
11+
from osbot_fast_api.client.Fast_API__Route__Extractor import Fast_API__Route__Extractor
1912
from osbot_fast_api.schemas.for_osbot_utils.enums.Enum__Http__Method import Enum__Http__Method
2013
from osbot_fast_api.schemas.routes.Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
2114
from osbot_fast_api.schemas.routes.enums.Enum__Route__Type import Enum__Route__Type
2215

2316

24-
2517
class test_Fast_API__Route__Extraction__integration(TestCase): # Integration tests for complete route extraction workflow
2618

2719
# todo: see if can use the Test__Fast_API__With_Routes.py class and endpoints here

tests/unit/schemas/routes/test_Schema__Fast_API__Routes__Collection.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from unittest import TestCase
2-
from osbot_utils.testing.__ import __, __SKIP__
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.schemas.routes.Schema__Fast_API__Route import Schema__Fast_API__Route
7-
from osbot_fast_api.schemas.routes.Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
8-
from osbot_fast_api.schemas.for_osbot_utils.enums.Enum__Http__Method import Enum__Http__Method
9-
from osbot_fast_api.schemas.routes.enums.Enum__Route__Type import Enum__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.schemas.routes.Schema__Fast_API__Route import Schema__Fast_API__Route
7+
from osbot_fast_api.schemas.routes.Schema__Fast_API__Routes__Collection import Schema__Fast_API__Routes__Collection
8+
from osbot_fast_api.schemas.for_osbot_utils.enums.Enum__Http__Method import Enum__Http__Method
9+
from osbot_fast_api.schemas.routes.enums.Enum__Route__Type import Enum__Route__Type
1010

1111

1212
class test_Schema__Fast_API__Routes__Collection(TestCase):

0 commit comments

Comments
 (0)