jeffwright13 / pytest-fold

A Pytest plugin to make console output more manageable when there are multiple failed tests
MIT License
12 stars 2 forks source link

Crash while running with gems-qa-auto data #63

Closed jeffwright13 closed 2 years ago

jeffwright13 commented 2 years ago
Traceback (most recent call last):
  File "/Users/jwr003/coding/pytest-fold/venv/bin/tuitk", line 33, in <module>
    sys.exit(load_entry_point('pytest-fold', 'console_scripts', 'tuitk')())
  File "/Users/jwr003/coding/pytest-fold/pytest_fold/tui_pytermtk.py", line 124, in main
    tui = TkTui()
  File "/Users/jwr003/coding/pytest-fold/pytest_fold/tui_pytermtk.py", line 13, in __init__
    self.test_results = Results()
  File "/Users/jwr003/coding/pytest-fold/pytest_fold/utils.py", line 88, in __init__
    self.marked_output = MarkedSections(self.Sections)
  File "/Users/jwr003/coding/pytest-fold/pytest_fold/utils.py", line 319, in __init__
    self._sections = self._sectionize(self._marked_lines)
  File "/Users/jwr003/coding/pytest-fold/pytest_fold/utils.py", line 368, in _sectionize
    self.Sections[section_name].content += line
KeyError: ''
(venv)
jeffwright13 commented 2 years ago

Sample data to produce error. Rename these to .bin.

marked_output.txt report_objects.txt unmarked_output.txt

jeffwright13 commented 2 years ago

Fixed in 0.8.2.