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 results for unittest subtests are formatted incorrectly if the docstring doesn't start with \n #221

Closed
throwable-one opened this issue Oct 31, 2019 · 0 comments

Comments

@throwable-one
Copy link
Collaborator

import unittest

class NumbersTest(unittest.TestCase):
    def test_even(self):
        """Test that numbers between 0 and 5 are all even.
        """
        for i in range(0, 6):
            with self.subTest(i=i):
                self.assertEqual(i % 2, 0)

https://youtrack.jetbrains.com/issue/PY-29614

throwable-one added a commit that referenced this issue Nov 1, 2019
We look for test name in subest.
Since id is added between test and description, we can't parse it using substring.

So, we use bare test id (without of description)
shalupov pushed a commit that referenced this issue Nov 3, 2019
We look for test name in subest.
Since id is added between test and description, we can't parse it using substring.

So, we use bare test id (without of description)
SergeyZh pushed a commit to JetBrains/intellij-community that referenced this issue Nov 12, 2019
Fixed on teamcity-runners side. This commit updates em to the latest version and adds test.
See JetBrains/teamcity-messages#221

GitOrigin-RevId: 2538e88844be6b0f337983e2629985c872ac4f71
SergeyZh pushed a commit to JetBrains/intellij-community that referenced this issue Nov 12, 2019
Fixed on teamcity-runners side. This commit updates em to the latest version and adds test.
See JetBrains/teamcity-messages#221

(cherry picked from commit 2538e88844be6b0f337983e2629985c872ac4f71)

GitOrigin-RevId: 734f58446c2064dc4da48f3abcf92049c80d746a
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

No branches or pull requests

1 participant