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.

test_pkg_db.py 769B

12345678910111213141516171819202122
  1. from dds_ci.testing import Project, RepoFixture
  2. def test_pkg_get(http_repo: RepoFixture, tmp_project: Project) -> None:
  3. http_repo.import_json_data({
  4. 'packages': {
  5. 'neo-sqlite3': {
  6. '0.3.0': {
  7. 'remote': {
  8. 'git': {
  9. 'url': 'https://github.com/vector-of-bool/neo-sqlite3.git',
  10. 'ref': '0.3.0',
  11. }
  12. }
  13. }
  14. }
  15. }
  16. })
  17. tmp_project.dds.repo_add(http_repo.url)
  18. tmp_project.dds.pkg_get('neo-sqlite3@0.3.0')
  19. assert tmp_project.root.joinpath('neo-sqlite3@0.3.0').is_dir()
  20. assert tmp_project.root.joinpath('neo-sqlite3@0.3.0/package.jsonc').is_file()