Skip to content

Commit d9f5a0a

Browse files
committed
minor refactor test
1 parent a581763 commit d9f5a0a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/test_api/test_api_sqla_with_includes.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,9 +2332,8 @@ class Config:
23322332
create_user_body = {"data": {"attributes": attrs}}
23332333

23342334
if inherit:
2335-
app = self.build_app(self.inherit(UserSchemaWithValidator))
2336-
else:
2337-
app = self.build_app(UserSchemaWithValidator)
2335+
UserSchemaWithValidator = self.inherit(UserSchemaWithValidator)
2336+
app = self.build_app(UserSchemaWithValidator)
23382337

23392338
async with AsyncClient(app=app, base_url="http://test") as client:
23402339
url = app.url_path_for(f"get_{self.resource_type}_list")
@@ -2429,9 +2428,8 @@ class Config:
24292428
create_user_body = {"data": {"attributes": attrs}}
24302429

24312430
if inherit:
2432-
app = self.build_app(self.inherit(UserSchemaWithValidator))
2433-
else:
2434-
app = self.build_app(UserSchemaWithValidator)
2431+
UserSchemaWithValidator = self.inherit(UserSchemaWithValidator)
2432+
app = self.build_app(UserSchemaWithValidator)
24352433

24362434
async with AsyncClient(app=app, base_url="http://test") as client:
24372435
url = app.url_path_for(f"get_{self.resource_type}_list")

0 commit comments

Comments
 (0)