enthought / enthought/envisage

Test test_layout_load fails on i3wm (tiling window manager)

Open
#569 1 comment 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Python
Stars
89
Forks
27
Avg merge
14h 48m
Merged PRs (30d)
7

Description

Running the tests gives the following failure under i3wm:
`FAILED envisage/ui/tasks/tests/test_tasks_application.py::TestTasksApplication::test_layout_load - AssertionError: Tuples differ: (956, 1029) != (492, 743)`

The issue is that any tiling window manager will resize any non-floating window to a shape fitting the current layout. This will cause an error in the above test, where it expects a specific window size.

This is nothing but a minor nuisance, very specific to a particular desktop setup and I think incredibly hard to properly fix. But I though I'd let you know anyways, maybe someone will know how to fix this issue, or maybe it's relevant to another problem you might have down the road.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with envisage/ui/tasks/tests/test_tasks_application.py and run TestTasksApplication::test_layout_load under i3wm to reproduce the reported tuple mismatch. Trace where the test expects the window size and determine how the tiling window manager affects it. Done means the test no longer fails solely because i3wm resizes the window.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.