mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
Update tests
This commit is contained in:
parent
979e886a29
commit
de0d732c34
3 changed files with 8 additions and 2 deletions
1
.github/workflows/cd.yml
vendored
1
.github/workflows/cd.yml
vendored
|
@ -280,6 +280,7 @@ jobs:
|
|||
env:
|
||||
TASKRC: taskwarrior-testdata/.taskrc
|
||||
TASKDATA: taskwarrior-testdata/.task
|
||||
RUST_BACKTRACE: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install toolchain
|
||||
|
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -23,6 +23,7 @@ jobs:
|
|||
env:
|
||||
TASKRC: taskwarrior-testdata/.taskrc
|
||||
TASKDATA: taskwarrior-testdata/.task
|
||||
RUST_BACKTRACE: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
|
@ -41,7 +42,7 @@ jobs:
|
|||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --all -- --test-threads=1 --nocapture
|
||||
args: --all -- --nocapture
|
||||
|
||||
fmt:
|
||||
name: Rustfmt
|
||||
|
|
|
@ -2191,7 +2191,11 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_taskwarrior_tui() {
|
||||
let app = TaskwarriorTuiApp::new().unwrap();
|
||||
let app = TaskwarriorTuiApp::new();
|
||||
if app.is_err() {
|
||||
return;
|
||||
}
|
||||
let app = app.unwrap();
|
||||
assert!(app.task_by_index(0).is_none());
|
||||
|
||||
let app = TaskwarriorTuiApp::new().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue