Skip to content

Commit

Permalink
Amend test permissions int to constants
Browse files Browse the repository at this point in the history
  • Loading branch information
mberacochea committed Apr 29, 2021
1 parent f4b3af6 commit 37538d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/api/test_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit 37538d4

Please sign in to comment.