| 67 | assert list(test_ability.executors) == [test_executor_windows, test_executor_linux] |
| 68 | |
| 69 | def test_executor_store_duplicate(self, ability, executor): |
| 70 | test_executor_1 = executor() |
| 71 | test_executor_2 = executor() |
| 72 | test_ability = ability(executors=[test_executor_1, test_executor_2]) |
| 73 | |
| 74 | assert len(list(test_ability.executors)) == 1 |
| 75 | assert next(test_ability.executors) is test_executor_2 # Overwrite |
| 76 | |
| 77 | def test_executor_store_duplicate_check_order(self, ability, executor): |
| 78 | test_executor_1 = executor(name='psh', platform='windows') |