MCPcopy Create free account
hub / github.com/kivy/python-for-android / test_recipes

Method test_recipes

tests/test_toolchain.py:120–139  ·  view source on GitHub ↗

Checks the `recipes` command prints out recipes information without crashing.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

ToolchainCLClass · 0.90
patch_sys_argvFunction · 0.85
patch_sys_stdoutFunction · 0.85

Tested by

no test coverage detected