No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

test_build_deps.py 1.3KB

12345678910111213141516171819202122232425262728293031
  1. from tests import dds, DDS
  2. def test_build_deps_from_file(dds: DDS):
  3. assert not dds.deps_build_dir.is_dir()
  4. dds.catalog_import(dds.source_root / 'catalog.json')
  5. dds.build_deps(['-d', 'deps.dds'])
  6. assert (dds.deps_build_dir / 'neo-sqlite3@0.2.2').is_dir()
  7. assert (dds.scratch_dir / 'INDEX.lmi').is_file()
  8. assert (dds.deps_build_dir / '_libman/neo-sqlite3.lmp').is_file()
  9. assert (dds.deps_build_dir / '_libman/neo/sqlite3.lml').is_file()
  10. def test_build_deps_from_cmd(dds: DDS):
  11. assert not dds.deps_build_dir.is_dir()
  12. dds.catalog_import(dds.source_root / 'catalog.json')
  13. dds.build_deps(['neo-sqlite3 =0.2.2'])
  14. assert (dds.deps_build_dir / 'neo-sqlite3@0.2.2').is_dir()
  15. assert (dds.scratch_dir / 'INDEX.lmi').is_file()
  16. assert (dds.deps_build_dir / '_libman/neo-sqlite3.lmp').is_file()
  17. assert (dds.deps_build_dir / '_libman/neo/sqlite3.lml').is_file()
  18. def test_multiple_deps(dds: DDS):
  19. assert not dds.deps_build_dir.is_dir()
  20. dds.catalog_import(dds.source_root / 'catalog.json')
  21. dds.build_deps(['neo-sqlite3 ^0.2.2', 'neo-sqlite3 ~0.2.0'])
  22. assert (dds.deps_build_dir / 'neo-sqlite3@0.2.2').is_dir()
  23. assert (dds.scratch_dir / 'INDEX.lmi').is_file()
  24. assert (dds.deps_build_dir / '_libman/neo-sqlite3.lmp').is_file()
  25. assert (dds.deps_build_dir / '_libman/neo/sqlite3.lml').is_file()