Checks the `recipes` command prints out recipes information without crashing.
(self)
| 118 | |
| 119 | @pytest.mark.skipif(sys.version_info < (3, 0), reason="requires python3") |
| 120 | def test_recipes(self): |
| 121 | """ |
| 122 | Checks the `recipes` command prints out recipes information without crashing. |
| 123 | """ |
| 124 | argv = ['toolchain.py', 'recipes'] |
| 125 | with patch_sys_argv(argv), patch_sys_stdout() as m_stdout: |
| 126 | ToolchainCL() |
| 127 | # check if we have common patterns in the output |
| 128 | expected_strings = ( |
| 129 | 'conflicts:', |
| 130 | 'depends:', |
| 131 | 'kivy', |
| 132 | 'optional depends:', |
| 133 | 'python3', |
| 134 | 'sdl2', |
| 135 | ) |
| 136 | for expected_string in expected_strings: |
| 137 | assert expected_string in m_stdout.getvalue() |
| 138 | # deletes static attribute to not mess with other tests |
| 139 | del Recipe.recipes |
| 140 | |
| 141 | def test_local_recipes_dir(self): |
| 142 | """ |
nothing calls this directly
no test coverage detected