dbrgn / fahrplan

A SBB/CFF/FFS commandline based timetable client. Project started at make.opendata.ch.
GNU General Public License v3.0
132 stars 20 forks source link

Tests fail on CI #40

Open The-Compiler opened 5 days ago

The-Compiler commented 5 days ago
FAIL: testRowCount (fahrplan.tests.test.TestBasicQuery)
A normal output table should have 16 rows.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/fahrplan/fahrplan/fahrplan/tests/test.py", line 200, in testRowCount
    self.assertEqual(16, len(self.rows))
AssertionError: 16 != 17

but seems to work fine locally.

dbrgn commented 5 days ago

Huh, strange, it worked in the PR...

It might be related to the inferred "window size" in CI. When testing locally, if you make the window quite small before running tests, the tests fail as well. Maybe something could be mocked to assume a certain window/terminal size?