mirror of
https://github.com/facebook/sapling.git
synced 2024-09-11 10:36:52 +03:00
update the ConfigTest class to run without a repository
Summary: Summary Change `ConfigTest` to derive directly from `EdenTestCase` rather than using the `eden_repo_test` decorator. The configuration test code doesn't really need a repository, and so we don't need to run it twice (for both Mercurial and Git repositories). Reviewed By: wez Differential Revision: D15756359 fbshipit-source-id: 90d5011ae1ff7d2a251c9e7bb776045fbe2fdfe1
This commit is contained in:
parent
53a6513e14
commit
232c3b2e2b
@ -19,12 +19,7 @@ from facebook.eden.ttypes import GetConfigParams
|
||||
from .lib import testcase
|
||||
|
||||
|
||||
@testcase.eden_repo_test
|
||||
class ConfigTest(testcase.EdenRepoTest):
|
||||
def populate_repo(self) -> None:
|
||||
self.repo.write_file("README", "readme\n")
|
||||
self.commit1 = self.repo.commit("Initial commit.")
|
||||
|
||||
class ConfigTest(testcase.EdenTestCase):
|
||||
def assert_config(
|
||||
self, config: EdenConfigData, name: str, value: str, source: ConfigSource
|
||||
) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user