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.

28 line
785B

  1. import pytest
  2. import subprocess
  3. from tests import DDS, DDSFixtureParams, dds_fixture_conf, dds_fixture_conf_1
  4. dds_conf = dds_fixture_conf(
  5. DDSFixtureParams(ident='git-remote', subdir='git-remote'),
  6. DDSFixtureParams(ident='no-deps', subdir='no-deps'),
  7. )
  8. @dds_conf
  9. def test_deps_build(dds: DDS):
  10. dds.catalog_import(dds.source_root / 'catalog.json')
  11. assert not dds.repo_dir.exists()
  12. dds.build()
  13. assert dds.repo_dir.exists(), '`Building` did not generate a repo directory'
  14. @dds_fixture_conf_1('use-remote')
  15. def test_use_nlohmann_json_remote(dds: DDS):
  16. dds.catalog_import(dds.source_root / 'catalog.json')
  17. dds.build(apps=True)
  18. app_exe = dds.build_dir / f'app{dds.exe_suffix}'
  19. assert app_exe.is_file()
  20. subprocess.check_call([str(app_exe)])