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: Add tests for case sensitivity #6194

Closed

Conversation

pselkirk
Copy link
Collaborator

This also includes changes to existing tests to deal with case-sensitivity issues that were revealed by temporarily hard-wiring PersonFactory to use an upper-case or mixed-case email address.

This testing was done while researching #5929 and #6057. This testing didn't result in code changes outside of the test code, so it's not imperative that it be merged.

This also includes changes to existing tests to deal with case-sensitivity
issues that were revealed by temporarily hard-wiring PersonFactory to use
an upper-case or mixed-case email address.
@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Merging #6194 (4f1a774) into main (aa955f0) will increase coverage by 0.00%.
Report is 32 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #6194   +/-   ##
=======================================
  Coverage   88.68%   88.69%           
=======================================
  Files         290      290           
  Lines       40300    40390   +90     
=======================================
+ Hits        35742    35824   +82     
- Misses       4558     4566    +8     

see 11 files with indirect coverage changes

Copy link
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

It looks to me like something is missing - see the comment about do_submission().

There's an inline suggestion about keyword-only arguments. That's more a question about whether you think it'd be appropriate than a demand - we haven't used keyword-only args in the code so far, but I think it's something we should consider.

ietf/submit/tests.py Show resolved Hide resolved
ietf/submit/tests.py Show resolved Hide resolved
ietf/submit/tests.py Show resolved Hide resolved
Copy link
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

I probably should have caught this on the first pass, but I still don't think email is making it all the way down into the test.

@@ -237,7 +237,7 @@ def create_and_post_submission(self, name, rev, author, group=None, formats=("tx
self.assertTrue(os.path.exists(os.path.join(self.staging_dir, "%s-%s.%s" % (name, rev, 'html'))))
return r

def do_submission(self, name, rev, group=None, formats: Tuple[str, ...]=("txt",), author=None, base_filename=None, ascii=True):
def do_submission(self, name, rev, group=None, formats: Tuple[str, ...]=("txt",), author=None, email=None, base_filename=None, ascii=True):
Copy link
Member

Choose a reason for hiding this comment

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

I should probably have caught this the first time around, but I don't think this email parameter is used either. Worries me that the test is not testing what it means to test.

@rjsparks
Copy link
Member

Closing this as OBE. We can come back to it as part of a future cleanup effort.

@rjsparks rjsparks closed this Feb 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
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.

3 participants