Switch the data directory lookup to use settings.SITE_DATA_DIR.

Review Request #13300 — Created Oct. 2, 2023 and submitted

Information

Review Board
release-6.x

Reviewers

The new get_data_dir() was returning $HOME, but we actaully already
had a better source for this. It now returns settings.SITE_DATA_DIR,
and also handles the case where this value changes, which can occur
during unit tests.

This fixes unit test failures with CertificateManager.

Unit tests pass.

Summary ID
Switch the data directory lookup to use settings.SITE_DATA_DIR.
The new `get_data_dir()` was returning `$HOME`, but we actaully already had a better source for this. It now returns `settings.SITE_DATA_DIR`, and also handles the case where this value changes, which can occur during unit tests. This fixes unit test failures with `CertificateManager`.
dedb0481e4b6f119a37426faabf1ebb9a1d77d87
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-6.x (599c380)