Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

sdist_test.py 877B

123456789101112131415161718192021222324252627
  1. from tests.dds import DDS, dds_fixture_conf_1
  2. @dds_fixture_conf_1('create')
  3. def test_create_sdist(dds: DDS) -> None:
  4. dds.sdist_create()
  5. sd_dir = dds.build_dir / 'foo@1.2.3.tar.gz'
  6. assert sd_dir.is_file()
  7. @dds_fixture_conf_1('create')
  8. def test_export_sdist(dds: DDS) -> None:
  9. dds.sdist_export()
  10. assert (dds.repo_dir / 'foo@1.2.3').is_dir()
  11. @dds_fixture_conf_1('create')
  12. def test_import_sdist_archive(dds: DDS) -> None:
  13. repo_content_path = dds.repo_dir / 'foo@1.2.3'
  14. assert not repo_content_path.is_dir()
  15. dds.sdist_create()
  16. assert not repo_content_path.is_dir()
  17. dds.repo_import(dds.build_dir / 'foo@1.2.3.tar.gz')
  18. assert repo_content_path.is_dir()
  19. assert repo_content_path.joinpath('library.jsonc').is_file()
  20. # Excluded file will not be in the sdist:
  21. assert not repo_content_path.joinpath('other-file.txt').is_file()