Skip to content

Commit f6d3313

Browse files
review @pcrespov
1 parent e0359c9 commit f6d3313

File tree

1 file changed

+10
-10
lines changed
  • services/api-server/src/simcore_service_api_server/models/schemas

1 file changed

+10
-10
lines changed

services/api-server/src/simcore_service_api_server/models/schemas/model_adapter.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class GetCreditPriceLegacy(BaseModel):
8585
)
8686

8787

88-
assert set(GetCreditPriceLegacy.model_fields.keys()) == set(
88+
assert set(GetCreditPriceLegacy.model_fields.keys()) == set( # nosec
8989
_GetCreditPrice.model_fields.keys()
9090
)
9191

@@ -105,7 +105,7 @@ class PricingUnitGetLegacy(BaseModel):
105105
)
106106

107107

108-
assert set(PricingUnitGetLegacy.model_fields.keys()) == set(
108+
assert set(PricingUnitGetLegacy.model_fields.keys()) == set( # nosec
109109
_PricingUnitGet.model_fields.keys()
110110
)
111111

@@ -127,7 +127,7 @@ class WalletGetWithAvailableCreditsLegacy(BaseModel):
127127
)
128128

129129

130-
assert set(WalletGetWithAvailableCreditsLegacy.model_fields.keys()) == set(
130+
assert set(WalletGetWithAvailableCreditsLegacy.model_fields.keys()) == set( # nosec
131131
_WalletGetWithAvailableCredits.model_fields.keys()
132132
)
133133

@@ -145,7 +145,7 @@ class ServicePricingPlanGetLegacy(BaseModel):
145145
)
146146

147147

148-
assert set(ServicePricingPlanGetLegacy.model_fields.keys()) == set(
148+
assert set(ServicePricingPlanGetLegacy.model_fields.keys()) == set( # nosec
149149
_ServicePricingPlanGet.model_fields.keys()
150150
)
151151

@@ -163,12 +163,12 @@ class LicensedResourceFeaturesDict(TypedDict):
163163
weight: NotRequired[str]
164164

165165

166-
assert set(LicensedResourceFeaturesDict.__annotations__.keys()) == set(
166+
assert set(LicensedResourceFeaturesDict.__annotations__.keys()) == set( # nosec
167167
_LicensedResourceFeaturesDict.__annotations__.keys()
168168
), "LicensedResourceFeaturesDict keys do not match"
169169

170170
for key in LicensedResourceFeaturesDict.__annotations__:
171-
assert (
171+
assert ( # nosec
172172
LicensedResourceFeaturesDict.__annotations__[key]
173173
== _LicensedResourceFeaturesDict.__annotations__[key]
174174
), f"Type of {key} in LicensedResourceFeaturesDict does not match"
@@ -186,14 +186,14 @@ class LicensedResource(BaseModel):
186186
available_from_url: HttpUrl | None
187187

188188

189-
assert set(LicensedResource.model_fields.keys()) == set(
189+
assert set(LicensedResource.model_fields.keys()) == set( # nosec
190190
_LicensedResource.model_fields.keys()
191191
), "LicensedResource keys do not match"
192192

193193
for key in LicensedResource.model_fields.keys():
194194
if key == "features":
195195
continue
196-
assert (
196+
assert ( # nosec
197197
LicensedResource.__annotations__[key] == _LicensedResource.__annotations__[key]
198198
), f"Type of {key} in LicensedResource does not match"
199199

@@ -214,7 +214,7 @@ class LicensedItemGet(BaseModel):
214214
)
215215

216216

217-
assert set(LicensedItemGet.model_fields.keys()) == set(
217+
assert set(LicensedItemGet.model_fields.keys()) == set( # nosec
218218
_LicensedItemGet.model_fields.keys()
219219
)
220220

@@ -232,6 +232,6 @@ class LicensedItemCheckoutGet(BaseModel):
232232
num_of_seats: int
233233

234234

235-
assert set(LicensedItemCheckoutGet.model_fields.keys()) == set(
235+
assert set(LicensedItemCheckoutGet.model_fields.keys()) == set( # nosec
236236
_LicensedItemCheckoutRpcGet.model_fields.keys()
237237
)

0 commit comments

Comments
 (0)