You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 4 години
преди 5 години
преди 5 години
123456789101112131415161718
  1. from dds_ci import proc, paths
  2. from dds_ci.testing import ProjectOpener
  3. def test_main(project_opener: ProjectOpener) -> None:
  4. proj = project_opener.open('main')
  5. proj.build()
  6. test_exe = proj.build_root.joinpath('test/testlib/calc' + paths.EXE_SUFFIX)
  7. assert test_exe.is_file()
  8. assert proc.run([test_exe]).returncode == 0
  9. def test_custom(project_opener: ProjectOpener) -> None:
  10. proj = project_opener.open('custom-runner')
  11. proj.build()
  12. test_exe = proj.build_root.joinpath('test/testlib/calc' + paths.EXE_SUFFIX)
  13. assert test_exe.is_file()
  14. assert proc.run([test_exe]).returncode == 0