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:
Adam Simpkins 2019-06-11 18:22:49 -07:00 committed by Facebook Github Bot
parent 53a6513e14
commit 232c3b2e2b

View File

@ -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: