From cce555b2cac0cb06f781d86b85f864d8cb88fd2b Mon Sep 17 00:00:00 2001 From: Kevin Burnett <18027+burnettk@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:26:07 +0000 Subject: [PATCH] ignore venv, and ensure always sort group members to fix flaky test in postgres (#1357) Co-authored-by: burnettk --- spiffworkflow-backend/.gitignore | 1 + .../src/spiffworkflow_backend/scripts/get_group_members.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spiffworkflow-backend/.gitignore b/spiffworkflow-backend/.gitignore index 790b4c8ab..58a60a60b 100644 --- a/spiffworkflow-backend/.gitignore +++ b/spiffworkflow-backend/.gitignore @@ -23,3 +23,4 @@ node_modules /some_cache_dir /process.json /spiffworkflow_backend.svg +/.venv diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/scripts/get_group_members.py b/spiffworkflow-backend/src/spiffworkflow_backend/scripts/get_group_members.py index b46b86a64..0fecb543d 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/scripts/get_group_members.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/scripts/get_group_members.py @@ -26,5 +26,5 @@ class GetGroupMembers(Script): if group is None: raise GroupNotFoundError(f"Script 'get_group_members' could not find group with identifier '{group_identifier}'.") - usernames = [u.username for u in group.users] + usernames = sorted([u.username for u in group.users]) return usernames