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

Adding test cases for unrolling an iterable #5062 #5155

Closed
wants to merge 3 commits into from

Conversation

danielx123
Copy link
Contributor

Adds tests that will check if the pytest terminal output from using assertion statements with "all" or "any" will unroll and produce the same output as assertion statements inside of a for-loop. These tests are related to issue #5062 and two of them currently fail. Once the implementation in #5103 is finished, all three of these tests should pass.

@codecov
Copy link

codecov bot commented Apr 22, 2019

Codecov Report

Merging #5155 into features will decrease coverage by 2.29%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           features    #5155     +/-   ##
===========================================
- Coverage     96.03%   93.73%   -2.3%     
===========================================
  Files           115      115             
  Lines         25948    25970     +22     
  Branches       2563     2564      +1     
===========================================
- Hits          24918    24344    -574     
- Misses          726     1305    +579     
- Partials        304      321     +17
Impacted Files Coverage Δ
testing/test_assertrewrite.py 82.15% <100%> (-1.89%) ⬇️
src/_pytest/terminal.py 92.58% <100%> (-0.53%) ⬇️
testing/test_terminal.py 98.3% <100%> (-1.53%) ⬇️
testing/test_pdb.py 46.73% <0%> (-49.71%) ⬇️
testing/test_argcomplete.py 20.28% <0%> (-47.83%) ⬇️
src/_pytest/_argcomplete.py 33.33% <0%> (-41.67%) ⬇️
src/_pytest/debugging.py 70.37% <0%> (-19.05%) ⬇️
src/_pytest/unittest.py 76.19% <0%> (-17.99%) ⬇️
testing/test_unittest.py 85.58% <0%> (-13.52%) ⬇️
testing/test_conftest.py 90.4% <0%> (-9.23%) ⬇️
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e3e57a7...4bfe88d. Read the comment docs.

package_msg = pipe.read()
package_msg = package_msg[:-2]
if package_msg:
self.write_line(package_msg)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this meant for debugging / this PR only?

@danielx123 danielx123 closed this May 9, 2019
@danielx123 danielx123 deleted the unroll_iterator branch May 9, 2019 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants