mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
a3003bf596
Summary: This introduces an `HgExtensionTestBase` class that can be subclassed to create tests for Mercurial integration with Eden. It also introduces `status_test.py`, which includes some basic integration tests for `hg status` in Eden. Although our existing `.cpp` tests give us a lot of coverage, they do not verify the logic in the Python code for our Mercurial extension, so this will help me sleep better at night. Note that `HgExtensionTestBase` is a subclass of `testcase.EdenHgTest` rather than using the `testcase.eden_repo_test` decorator because these tests will only be used in the Mercurial case for now, so there is no point in trying to run them when creating the mount from a Git repo, as well. Further note that this also required a small change to `eden/fs/integration/lib/testcase.py` because the Eden directory was not being created at `$HOME/local/.eden`, which is something that the Mercurial extension relies on. Reviewed By: simpkins Differential Revision: D4337660 fbshipit-source-id: ea825134420ae6eb794d37b6c75da19a6aadaae5 |
||
---|---|---|
.. | ||
cli | ||
config | ||
inodes | ||
integration | ||
journal | ||
model | ||
rocksdb | ||
service | ||
store | ||
testharness |