Show More
@@ -516,23 +516,23 b' def test_pinfo_docstring_dynamic(capsys):' | |||
|
516 | 516 | |
|
517 | 517 | ip.run_line_magic("pinfo", "b.prop") |
|
518 | 518 | captured = capsys.readouterr() |
|
519 |
assert "Docstring: |
|
|
519 | assert re.search(r"Docstring:\s+cdoc for prop", captured.out) | |
|
520 | 520 | |
|
521 | 521 | ip.run_line_magic("pinfo", "b.non_exist") |
|
522 | 522 | captured = capsys.readouterr() |
|
523 |
assert "Docstring: |
|
|
523 | assert re.search(r"Docstring:\s+cdoc for non_exist", captured.out) | |
|
524 | 524 | |
|
525 | 525 | ip.run_cell("b.prop?") |
|
526 | 526 | captured = capsys.readouterr() |
|
527 |
assert "Docstring: |
|
|
527 | assert re.search(r"Docstring:\s+cdoc for prop", captured.out) | |
|
528 | 528 | |
|
529 | 529 | ip.run_cell("b.non_exist?") |
|
530 | 530 | captured = capsys.readouterr() |
|
531 |
assert "Docstring: |
|
|
531 | assert re.search(r"Docstring:\s+cdoc for non_exist", captured.out) | |
|
532 | 532 | |
|
533 | 533 | ip.run_cell("b.undefined?") |
|
534 | 534 | captured = capsys.readouterr() |
|
535 | assert "Docstring: <no docstring>" in captured.out | |
|
535 | assert re.search(r"Type:\s+NoneType", captured.out) | |
|
536 | 536 | |
|
537 | 537 | |
|
538 | 538 | def test_pinfo_magic(): |
General Comments 0
You need to be logged in to leave comments.
Login now