Add unit test utilities for locating dependency files.

Review Request #11647 — Created June 7, 2021 and submitted — Latest diff uploaded

Information

ReviewBot
release-3.0.x

Reviewers

We'll have some unit tests that depend on locally-placed files (in
particular, .jar files). To keep this manageable, there's now a
tests/deps/ directory that unit tests can use for looking up placed
files, and a get_test_dep_path() method to aid in that.

No tests use this yet, but that will be changing with all Java-backed
tests shortly, to avoid a dependency (and issues with) $CLASSPATH.

Used this in some upcoming unit tests successfully.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add unit test utilities for locating dependency files.
We'll have some unit tests that depend on locally-placed files (in particular, `.jar` files). To keep this manageable, there's now a `tests/deps/` directory that unit tests can use for looking up placed files, and a `get_test_dep_path()` method to aid in that. No tests use this yet, but that will be changing with all Java-backed tests shortly, to avoid a dependency (and issues with) `$CLASSPATH`.
e43c3add2e779252480c53cefe912607efb5dba4 Christian Hammond
bot/reviewbot/testing/__init__.py
bot/reviewbot/testing/utils.py
bot/tests/deps/.gitignore
bot/tests/deps/README.md
Loading...