

def test_yield_editable_constraint(self):
    url = 'git+https://url#egg=SomeProject'
    line = ('-e %s' % url)
    filename = 'filename'
    comes_from = ('-c %s (line %s)' % (filename, 1))
    req = InstallRequirement.from_editable(url, comes_from=comes_from, constraint=True)
    found_req = list(process_line(line, filename, 1, constraint=True))[0]
    assert (repr(found_req) == repr(req))
    assert (found_req.constraint is True)

dataset/ETHPy150Open pypa/pip/tests/unit/test_req_file.py TestProcessLine.test_yield_editable_constraint/original