use private function (in tests) to validate conanfile syntax
@@ -8,7 +8,7 @@ from conans.model.ref import ConanFileReference
from conans.test.utils.tools import TestServer, TestClient
from conans.util.files import save, load
from conans.client.cmd.export import _replace_scm_data_in_conanfile
-from conans.client.loader import parse_conanfile
+from conans.client.loader import _parse_conanfile
from conans.test.utils.test_files import temp_folder
from conans.model.scm import SCMData
@@ -48,7 +48,7 @@ class ConanLib(ConanFile):
scm_data = SCMData(conanfile=namedtuple('_', 'scm')(scm=scm_data))
_replace_scm_data_in_conanfile(self.conanfile_path, scm_data)
self.assertEqual(load(self.conanfile_path), target_conanfile)
- parse_conanfile(self.conanfile_path) # Check that the resulting file is valid python code.
+ _parse_conanfile(conan_file_path=self.conanfile_path) # Check that the resulting file is valid python code.
def test_conanfile_after_scm(self):
scm_data = {'type': 'git',
