[namcap] Add warning about following case of preSetUp()

Message ID 20190527035115.28028-1-jamespharvey20@gmail.com
State New
Headers show
Series [namcap] Add warning about following case of preSetUp() | expand

Commit Message

Emil Velikov via arch-projects May 27, 2019, 3:51 a.m. UTC
Spent too much time figuring out why I was getting an error of "object
has no attribute 'rule'".  Perhaps it's correct spelling and grammer for
"set up" to be two words here, being used as a verb, but I wasn't
expecting that.  Maybe this will help someone someday.

Signed off by: James P. Harvey <jamespharvey20 at gmail dot com>
 README | 3 +++
 1 file changed, 3 insertions(+)


diff --git a/README b/README
index c90315e..e7f07d2 100644
--- a/README
+++ b/README
@@ -160,6 +160,9 @@  class NamcapPkgnameInDescTest(PkgbuildTest):
 * the preSetUp() method sets the rule to be used in the test
+* note the case, using preSetup() will cause the error "object has no attribute
+  'rule'"
 * the test_example1() method runs the rule on the given PKGBUILD and
   tests whether the results are as expected