From 37538d417bfc9402a526107270bb84052111aaad Mon Sep 17 00:00:00 2001 From: Martin Beracochea Date: Thu, 29 Apr 2021 18:38:27 +0100 Subject: [PATCH] Amend test permissions int to constants --- tests/api/test_permissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api/test_permissions.py b/tests/api/test_permissions.py index 92e419967..a3b8394b6 100644 --- a/tests/api/test_permissions.py +++ b/tests/api/test_permissions.py @@ -98,7 +98,7 @@ def setup_method(self, db, pipelines, experiment_type, analysis_status): # public run (needeed for auth filtering) public_status = baker.make( "emgapi.Status", - pk=4, + pk=emg_models.Status.PUBLIC, status="public", ) public_run = baker.make( @@ -112,7 +112,7 @@ def setup_method(self, db, pipelines, experiment_type, analysis_status): # private (needeed for auth filtering) private_status = baker.make( "emgapi.Status", - pk=2, + pk=emg_models.Status.PRIVATE, status="private", ) run_private = baker.make(