Skip to content

Commit

Permalink
Merge branch 'main' into 503-add-ujson-to-locust-dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lchen-2101 authored Nov 25, 2024
2 parents 842de00 + 26cc187 commit 1a72cea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/sbl_filing_api/entities/models/dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class SubmissionDTO(BaseModel):
submitter: UserActionDTO
accepter: UserActionDTO | None = None

@model_validator(mode="after")
def validate_fi(self) -> "SubmissionDTO":
print(f"Self: {self}")
self.id = self.counter
print(f"Self: {self}")
return self


class FilingTaskDTO(BaseModel):
model_config = ConfigDict(from_attributes=True)
Expand Down
3 changes: 2 additions & 1 deletion tests/api/routers/test_filing_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,8 @@ async def test_accept_submission(self, mocker: MockerFixture, app_fixture: FastA
)

assert res.json()["state"] == "SUBMISSION_ACCEPTED"
assert res.json()["id"] == 4
assert res.json()["id"] == 1
assert res.json()["counter"] == 4
assert res.json()["accepter"]["id"] == 3
assert res.json()["accepter"]["user_id"] == "1234-5678-ABCD-EFGH"
assert res.json()["accepter"]["user_name"] == "test accepter"
Expand Down

0 comments on commit 1a72cea

Please sign in to comment.