Update tests

This commit is contained in:
Dheepak Krishnamurthy 2021-03-30 19:41:39 -06:00
parent 979e886a29
commit de0d732c34
3 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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();