Skip to content

multi line assertion function replaced with invalid code #45

Description

@Mattwmaster58

Consider the following code:

import unittest


class Tests(unittest.TestCase):
    def test_1(self):
        self.assertIn('multline line assert',
                      'multline line assert')

This is the output:

import unittest


class Tests(unittest.TestCase):
    def test_1(self):
        assert 'multline line assert' in
                      'multline line assert'

This is the correct output:

import unittest


class Tests(unittest.TestCase):
    def test_1(self):
        assert 'multline line assert' in 'multline line assert'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions