1111@pytest .mark .skipif (not getattr (pacman_not_found , 'enabled_by_default' , True ),
1212 reason = 'Skip if pacman is not available' )
1313@pytest .mark .parametrize ('command' , [
14+ Command ('yay -S llc' , 'error: target not found: llc' ),
1415 Command ('yaourt -S llc' , 'error: target not found: llc' ),
1516 Command ('pacman llc' , 'error: target not found: llc' ),
1617 Command ('sudo pacman llc' , 'error: target not found: llc' )])
@@ -19,6 +20,7 @@ def test_match(command):
1920
2021
2122@pytest .mark .parametrize ('command' , [
23+ Command ('yay -S llc' , 'error: target not found: llc' ),
2224 Command ('yaourt -S llc' , 'error: target not found: llc' ),
2325 Command ('pacman llc' , 'error: target not found: llc' ),
2426 Command ('sudo pacman llc' , 'error: target not found: llc' )])
@@ -31,6 +33,7 @@ def test_match_mocked(subp_mock, command):
3133@pytest .mark .skipif (not getattr (pacman_not_found , 'enabled_by_default' , True ),
3234 reason = 'Skip if pacman is not available' )
3335@pytest .mark .parametrize ('command, fixed' , [
36+ (Command ('yay -S llc' , 'error: target not found: llc' ), ['yay -S extra/llvm' , 'yay -S extra/llvm35' ]),
3437 (Command ('yaourt -S llc' , 'error: target not found: llc' ), ['yaourt -S extra/llvm' , 'yaourt -S extra/llvm35' ]),
3538 (Command ('pacman -S llc' , 'error: target not found: llc' ), ['pacman -S extra/llvm' , 'pacman -S extra/llvm35' ]),
3639 (Command ('sudo pacman -S llc' , 'error: target not found: llc' ), ['sudo pacman -S extra/llvm' , 'sudo pacman -S extra/llvm35' ])])
@@ -39,6 +42,7 @@ def test_get_new_command(command, fixed):
3942
4043
4144@pytest .mark .parametrize ('command, fixed' , [
45+ (Command ('yay -S llc' , 'error: target not found: llc' ), ['yay -S extra/llvm' , 'yay -S extra/llvm35' ]),
4246 (Command ('yaourt -S llc' , 'error: target not found: llc' ), ['yaourt -S extra/llvm' , 'yaourt -S extra/llvm35' ]),
4347 (Command ('pacman -S llc' , 'error: target not found: llc' ), ['pacman -S extra/llvm' , 'pacman -S extra/llvm35' ]),
4448 (Command ('sudo pacman -S llc' , 'error: target not found: llc' ), ['sudo pacman -S extra/llvm' , 'sudo pacman -S extra/llvm35' ])])
0 commit comments