(monkeypatch, base_app)
| 4259 | reason="This tests how Cmd._complete_users() behaves on Windows.", |
| 4260 | ) |
| 4261 | def test_path_complete_users_windows(monkeypatch, base_app): |
| 4262 | # Mock os.path.expanduser and isdir |
| 4263 | monkeypatch.setattr("os.path.expanduser", lambda p: "/home/user" if p == "~user" else p) |
| 4264 | monkeypatch.setattr("os.path.isdir", lambda p: p == "/home/user") |
| 4265 | |
| 4266 | matches = base_app.path_complete("~user", "cmd ~user", 0, 9) |
| 4267 | # Should contain ~user/ (or ~user\ depending on sep) |
| 4268 | # Since we didn't mock os.path.sep, it will use system separator. |
| 4269 | expected = "~user" + os.path.sep |
| 4270 | assert expected in matches |
| 4271 | |
| 4272 | |
| 4273 | def test_get_bottom_toolbar(base_app, monkeypatch): |
nothing calls this directly
no test coverage detected
searching dependent graphs…