# HG changeset patch # User Augie Fackler # Date 2019-08-14 20:11:45 # Node ID 034b2bf377f03d2b2920fef3aaeaf4067f35783b # Parent 64a0cb2d4692ab8b33ee7e3c2001b971377fe597 tests: split joint repo/changelog fake into one for each type I'm just not comfortable with fakes that get overloaded for multiple types: too often it gets out of hand and becomes difficult to trace. Differential Revision: https://phab.mercurial-scm.org/D6725 diff --git a/tests/test-rust-discovery.py b/tests/test-rust-discovery.py --- a/tests/test-rust-discovery.py +++ b/tests/test-rust-discovery.py @@ -31,11 +31,14 @@ data_non_inlined = ( b'\x00\x00\x00\x00\x00\x00\x00\x00\x00' ) +class fakechangelog(object): + def __init__(self, idx): + self.index = idx + class fakerepo(object): def __init__(self, idx): """Just make so that self.changelog.index is the given idx.""" - self.index = idx - self.changelog = self + self.changelog = fakechangelog(idx) @unittest.skipIf(PartialDiscovery is None or cparsers is None, "rustext or the C Extension parsers module "