Skip to content

Add tests for shortened 'pip uninstall' output#4502

Merged
dstufft merged 7 commits intopypa:masterfrom
pradyunsg:tests/nicer-uninstall
Jun 14, 2017
Merged

Add tests for shortened 'pip uninstall' output#4502
dstufft merged 7 commits intopypa:masterfrom
pradyunsg:tests/nicer-uninstall

Conversation

@pradyunsg
Copy link
Copy Markdown
Member

Follow up on #4493.

@xavfernandez Do you think the tests should be unit tests or functional tests? (I'm thinking unit but confirming).

@xavfernandez xavfernandez added skip news Does not need a NEWS file entry (eg: trivial changes) C: tests Testing and related things labels May 20, 2017
@xavfernandez
Copy link
Copy Markdown
Member

A few unit-tests should be good :)

@pradyunsg
Copy link
Copy Markdown
Member Author

@xavfernandez I hope you don't mind that I also changed the test_download.py file.

If you think it's not nice to be modifying that file here, I'll undo that and make a new PR for that. But I almost feel that'll be overkill.

@pradyunsg
Copy link
Copy Markdown
Member Author

Oh, and unless something interesting happens on Travis, I think this is done.

/request-review @xavfernandez @dstufft @pfmoore

@pradyunsg pradyunsg changed the title [WIP] Add tests for shortened 'pip uninstall' output Add tests for shortened 'pip uninstall' output Jun 5, 2017
Comment thread tests/unit/test_req_uninstall.py Outdated
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.

sample = [path for path in sample if ".skip." not in path] seems simpler

Comment thread pip/req/req_uninstall.py Outdated
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.

This docstring is quite hard to parse

@pradyunsg
Copy link
Copy Markdown
Member Author

@xavfernandez I hope that addresses your comments. :)

@pradyunsg pradyunsg force-pushed the tests/nicer-uninstall branch from c7e493b to 93372db Compare June 13, 2017 18:08
@pradyunsg pradyunsg force-pushed the tests/nicer-uninstall branch from 93372db to 72b91cc Compare June 14, 2017 04:43
@pradyunsg
Copy link
Copy Markdown
Member Author

Is there anything outstanding?

@dstufft dstufft merged commit 2838426 into pypa:master Jun 14, 2017
@pradyunsg pradyunsg deleted the tests/nicer-uninstall branch June 14, 2017 11:32
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

auto-locked Outdated issues that have been locked by automation C: tests Testing and related things skip news Does not need a NEWS file entry (eg: trivial changes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants