Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: ignore acceptable order change #5727

Merged
merged 2 commits into from
May 31, 2023
Merged

Conversation

rjsparks
Copy link
Member

No description provided.

@@ -158,7 +158,7 @@ def test_edit(self):
list(TimerangeName.objects.filter(name__in=['thursday-afternoon-early', 'thursday-afternoon-late']).values('name'))
)
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
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
Copy link

codecov bot commented May 31, 2023

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