Skip to content

test: ignore acceptable order change - #5727

Merged
rjsparks merged 2 commits into
ietf-tools:mainfrom
rjsparks:ignoreorder2
May 31, 2023
Merged

test: ignore acceptable order change#5727
rjsparks merged 2 commits into
ietf-tools:mainfrom
rjsparks:ignoreorder2

Conversation

@rjsparks

Copy link
Copy Markdown
Member

No description provided.

Comment thread ietf/secr/sreq/tests.py Outdated
)
self.assertFalse(sessions[0].joint_with_groups.count())
self.assertEqual(list(sessions[1].joint_with_groups.all()), [group3, group4])
self.assertEqual(set(list(sessions[1].joint_with_groups.all())), set([group3, group4]))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the set() need the list() first? I'd have thought it can work straight from the QuerySet.

Could also use a set literal {group3, group4}

Up to you whether you care enough about this to change.

@codecov

codecov Bot commented May 31, 2023

Copy link
Copy Markdown

Codecov Report

Merging #5727 (046c3d3) into main (d595aac) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #5727      +/-   ##
==========================================
+ Coverage   88.73%   88.74%   +0.01%     
==========================================
  Files         285      285              
  Lines       39852    39852              
==========================================
+ Hits        35362    35367       +5     
+ Misses       4490     4485       -5     

see 3 files with indirect coverage changes

@rjsparks
rjsparks merged commit c12f810 into ietf-tools:main May 31, 2023
@rjsparks
rjsparks deleted the ignoreorder2 branch June 2, 2023 14:55
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants