wrolpi/modules/repos/test
Roland 1f71381dad
repos: choose a Repo's directory; import a clone where it is
A user's repos (like any Collection) may live outside the special
directories, so:

* New Repo has an optional Directory (relative to the media directory,
  empty or new).  Empty still means the Repos directory.  A repo in
  another directory is not ignored: its files are indexed unless the user
  ignores the directory.
* Import keeps the clone where it is (no move); the inspection says
  whether its directory is ignored.  The moved-destination checks are
  gone with the move.

Both share the directory rules: in the media directory, not a special
directory (or one holding one), nothing in config/ or tags/, and not
overlapping another Collection's directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 19:24:49 -06:00
..
__init__.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
test_api.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
test_config.py repos: a clone is owned by a random token, not its URL 2026-10-06 18:58:18 -06:00
test_downloader.py repos: validate branch names and repo directories 2026-10-06 16:56:09 -06:00
test_extras.py repos: pin the repo's host once, and only exempt its own host and port 2026-10-06 17:38:45 -06:00
test_import.py repos: choose a Repo's directory; import a clone where it is 2026-10-06 19:24:49 -06:00
test_lib.py repos: ignore the repos destination's own directory, and validate it 2026-10-06 17:45:05 -06:00
test_ownership.py repos: submodule links must stay in the repo; import checks before it moves 2026-10-06 19:03:07 -06:00
test_search.py repos: close the remaining submodule SSRF gaps 2026-10-06 16:56:10 -06:00