mirror of
https://github.com/openai/codex.git
synced 2026-11-13 06:45:07 +00:00
Remove obsolete ignored tests (#34558)
## What changed Remove ignored tests for cloud-task composer rendering, delegated approval forwarding, and unified-exec session pruning, along with their unused imports. GitOrigin-RevId: 66ae0d3b672f6471a52ba0479bbd8119e12182f1
This commit is contained in:
1 parent
40a719238c
commit
268288ad6d
3 files changed
-366
No files matched your search
@@ -2144,14 +2144,7 @@ mod tests {
|
||||
use codex_cloud_tasks_client::TaskStatus;
|
||||
use codex_cloud_tasks_client::TaskSummary;
|
||||
use codex_cloud_tasks_mock_client::MockClient;
|
||||
use codex_tui::ComposerAction;
|
||||
use codex_tui::ComposerInput;
|
||||
use crossterm::event::KeyCode;
|
||||
use crossterm::event::KeyEvent;
|
||||
use crossterm::event::KeyModifiers;
|
||||
use pretty_assertions::assert_eq;
|
||||
use ratatui::buffer::Buffer;
|
||||
use ratatui::layout::Rect;
|
||||
|
||||
struct StubGitInfo {
|
||||
default_branch: Option<String>,
|
||||
@@ -2377,33 +2370,4 @@ mod tests {
|
||||
assert_eq!(url.0, "task_i_123456");
|
||||
assert!(parse_task_id(" ").is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore = "very slow"]
|
||||
fn composer_input_renders_typed_characters() {
|
||||
let mut composer = ComposerInput::new();
|
||||
let key = KeyEvent::new(KeyCode::Char('a'), KeyModifiers::NONE);
|
||||
match composer.input(key) {
|
||||
ComposerAction::Submitted(_) => panic!("unexpected submission"),
|
||||
ComposerAction::None => {}
|
||||
}
|
||||
|
||||
let area = Rect::new(0, 0, 20, 5);
|
||||
let mut buf = Buffer::empty(area);
|
||||
composer.render_ref(area, &mut buf);
|
||||
|
||||
let found = buf.content().iter().any(|cell| cell.symbol() == "a");
|
||||
assert!(found, "typed character was not rendered: {buf:?}");
|
||||
|
||||
composer.set_hint_items(vec![("⌃O", "env"), ("⌃C", "quit")]);
|
||||
composer.render_ref(area, &mut buf);
|
||||
let footer = buf
|
||||
.content()
|
||||
.iter()
|
||||
.skip((area.width as usize) * (area.height as usize - 1))
|
||||
.map(ratatui::buffer::Cell::symbol)
|
||||
.collect::<Vec<_>>()
|
||||
.join("");
|
||||
assert!(footer.contains("⌃O env"));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user