<s> import os <EOL> import qisys . sh <EOL> from qibuild . test . conftest import qibuild_action <EOL> def test_simple ( qipy_action ) : <EOL> a_project = qipy_action . add_test_project ( "<STR_LIT>" ) <EOL> big_project = qipy_action . add_test_project ( "<STR_LIT>" ) <EOL> qipy_action ( "<STR_LIT>" ) <EOL> qipy_action ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:a>" ) <EOL> qipy_action ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> def test_cpp ( qipy_action , qibuild_action ) : <EOL> qipy_action . add_test_project ( "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> qipy_action ( "<STR_LIT>" ) <EOL> qipy_action ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:-c>" , "<STR_LIT>" ) <EOL> def test_with_deps ( qipy_action ) : <EOL> qipy_action . add_test_project ( "<STR_LIT>" ) <EOL> qipy_action ( "<STR_LIT>" ) <EOL> qipy_action ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:-c>" , "<STR_LIT>" ) <EOL> def test_with_distutils ( qipy_action ) : <EOL> qipy_action . add_test_project ( "<STR_LIT>" ) <EOL> qipy_action ( "<STR_LIT>" ) <EOL> qipy_action ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:foo>" ) <EOL> def test_qimodule ( qipy_action ) : <EOL> qipy_action . add_test_project ( "<STR_LIT>" ) <EOL> qipy_action ( "<STR_LIT>" ) <EOL> sourceme = qipy_action ( "<STR_LIT>" ) <EOL> bin_path = os . path . dirname ( sourceme ) <EOL> venv_path = os . path . join ( bin_path , "<STR_LIT:..>" ) <EOL> venv_path = qisys . sh . to_native_path ( venv_path ) <EOL> for name in [ "<STR_LIT:foo>" , "<STR_LIT:bar>" ] : <EOL> mod_path = os . path . join ( venv_path , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" % name ) <EOL> with open ( mod_path , "<STR_LIT:r>" ) as fp : <EOL> contents = fp . read ( ) <EOL> assert contents == "<STR_LIT>" <EOL> def test_fails_on_bad_requirements_txt ( qipy_action ) : <EOL> a_project = qipy_action . add_test_project ( "<STR_LIT>" ) <EOL> requirements_txt = os . path . join ( a_project . path , "<STR_LIT>" ) <EOL> with open ( requirements_txt , "<STR_LIT:w>" ) as fp : <EOL> fp . write ( "<STR_LIT>" ) <EOL> rc = qipy_action ( "<STR_LIT>" , retcode = True ) <EOL> assert rc != <NUM_LIT:0> </s>
