From 754b2ef578129f36a2030748cf59c12f30fef21a Mon Sep 17 00:00:00 2001 From: Uilian Ries Date: Fri, 1 Nov 2019 09:54:39 -0300 Subject: [PATCH] #123 Update KB number to 35 Signed-off-by: Uilian Ries --- hooks/conan-center.py | 4 ++-- tests/test_hooks/conan-center/test_conan-center.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hooks/conan-center.py b/hooks/conan-center.py index b583c13c..3dbcfb68 100644 --- a/hooks/conan-center.py +++ b/hooks/conan-center.py @@ -38,7 +38,7 @@ "KB-H029": "TEST PACKAGE - RUN ENVIRONMENT", "KB-H030": "CONANDATA.YML FORMAT", "KB-H031": "CONANDATA.YML REDUCE", - "KB-H034": "CUSTOM ATTRIBUTES", + "KB-H035": "CUSTOM ATTRIBUTES", } @@ -320,7 +320,7 @@ def _not_allowed_entries(info, allowed_entries): "conandata.yml" % (entries, version)) return - @run_test("KB-H034", output) + @run_test("KB-H035", output) def test(out): mock = ConanFile(conanfile.output, None) valid_attrs = [attr for attr in dir(mock) if not callable(attr)] + ['conan_data', 'python_requires'] diff --git a/tests/test_hooks/conan-center/test_conan-center.py b/tests/test_hooks/conan-center/test_conan-center.py index 812f3ece..4b4e0319 100644 --- a/tests/test_hooks/conan-center/test_conan-center.py +++ b/tests/test_hooks/conan-center/test_conan-center.py @@ -88,7 +88,7 @@ def test_conanfile(self): self.assertIn("ERROR: [CONAN CENTER INDEX URL (KB-H027)] The attribute 'url' should " \ "point to: https://github.com/conan-io/conan-center-index", output) self.assertIn("[CMAKE MINIMUM VERSION (KB-H028)] OK", output) - self.assertIn("[CUSTOM ATTRIBUTES (KB-H034)] OK", output) + self.assertIn("[CUSTOM ATTRIBUTES (KB-H035)] OK", output) def test_conanfile_header_only(self): tools.save('conanfile.py', content=self.conanfile_header_only) @@ -110,7 +110,7 @@ def test_conanfile_header_only(self): "recipe", output) self.assertIn("[META LINES (KB-H025)] OK", output) self.assertIn("[CMAKE MINIMUM VERSION (KB-H028)] OK", output) - self.assertIn("[CUSTOM ATTRIBUTES (KB-H034)] OK", output) + self.assertIn("[CUSTOM ATTRIBUTES (KB-H035)] OK", output) def test_conanfile_header_only_with_settings(self): tools.save('conanfile.py', content=self.conanfile_header_only_with_settings) @@ -131,7 +131,7 @@ def test_conanfile_header_only_with_settings(self): "recipe", output) self.assertIn("[META LINES (KB-H025)] OK", output) self.assertIn("[CMAKE MINIMUM VERSION (KB-H028)] OK", output) - self.assertIn("[CUSTOM ATTRIBUTES (KB-H034)] OK", output) + self.assertIn("[CUSTOM ATTRIBUTES (KB-H035)] OK", output) def test_conanfile_installer(self): tools.save('conanfile.py', content=self.conanfile_installer) @@ -424,6 +424,6 @@ def package(self): """) tools.save('conanfile.py', content=conanfile) output = self.conan(['create', '.', 'name/version@user/test']) - self.assertIn("ERROR: [CUSTOM ATTRIBUTES (KB-H034)] Custom attributes must be declared " \ + self.assertIn("ERROR: [CUSTOM ATTRIBUTES (KB-H035)] Custom attributes must be declared " \ "as protected. The follow attributes are invalid: 'foobar', " \ "'package_subfolder'", output)