Skip to content

Commit 40d42e5

Browse files
committed
Fix test
1 parent 1bea96d commit 40d42e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

upload/tests/views/test_uploads.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def test_uploads_post_tokenless(db, mocker, mock_redis, private, branch, branch_
437437
amplitude_mock.assert_called_with(
438438
"Upload Sent",
439439
{
440-
"user_ownerid": commit.repository.author.ownerid,
440+
"user_ownerid": commit.author.ownerid,
441441
"ownerid": commit.repository.author.ownerid,
442442
"repoid": commit.repository.repoid,
443443
"commitid": commit.id,
@@ -603,7 +603,7 @@ def test_uploads_post_token_required_auth_check(
603603
amplitude_mock.assert_called_with(
604604
"Upload Sent",
605605
{
606-
"user_ownerid": commit.repository.author.ownerid,
606+
"user_ownerid": commit.author.ownerid,
607607
"ownerid": commit.repository.author.ownerid,
608608
"repoid": commit.repository.repoid,
609609
"commitid": commit.id,
@@ -750,7 +750,7 @@ def test_uploads_post_github_oidc_auth(
750750
amplitude_mock.assert_called_with(
751751
"Upload Sent",
752752
{
753-
"user_ownerid": commit.repository.author.ownerid,
753+
"user_ownerid": commit.author.ownerid,
754754
"ownerid": commit.repository.author.ownerid,
755755
"repoid": commit.repository.repoid,
756756
"commitid": commit.id,

0 commit comments

Comments
 (0)