Skip to content

Commit

Permalink
changes from main
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Jul 12, 2023
1 parent bf54b21 commit cf2c8d0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/unit/forklift/test_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3436,27 +3436,22 @@ def test_upload_succeeds_creates_release_metadata_2_3(
# Ensure that all of our journal entries have been created
journals = (
db_request.db.query(JournalEntry)
.options(joinedload("submitted_by"))
.options(joinedload(JournalEntry.submitted_by))
.order_by("submitted_date", "id")
.all()
)
assert [
(j.name, j.version, j.action, j.submitted_by, j.submitted_from)
for j in journals
] == [
assert [(j.name, j.version, j.action, j.submitted_by) for j in journals] == [
(
release.project.name,
release.version,
"new release",
user,
db_request.remote_addr,
),
(
release.project.name,
release.version,
f"add source file {filename}",
user,
db_request.remote_addr,
),
]

Expand Down

0 comments on commit cf2c8d0

Please sign in to comment.