config, doc, test: clarify nick@host format of owner, admins settings#2733
config, doc, test: clarify nick@host format of owner, admins settings#2733SnoopJ wants to merge 2 commits intosopel-irc:masterfrom
nick@host format of owner, admins settings#2733Conversation
nick@host format of owner settings
nick@host format of owner settingsnick@host format of owner setting
dgw
left a comment
There was a problem hiding this comment.
In addition to the style tweaks mentioned as line notes, let's either include core.admins in this as well (it also uses match_host_or_nick()) or immediately follow up with another PR to do so.
nick@host format of owner settingnick@host format of owner, admins settings
9a820e5 to
2b07758
Compare
dgw
left a comment
There was a problem hiding this comment.
Discretizing tests for the different cases will probably happen in whatever patch addresses #2734 (thanks for opening that). For now this is a good step forward.
10 commits is a lot, with the fixups and stuff, so this is your 👍 from me to squash things. 😸
Co-authored-by: dgw <dgw@technobabbl.es>
Co-authored-by: dgw <dgw@technobabbl.es>
2b07758 to
c4fe40c
Compare
|
I have a smaller patch for #2734 that "just" adds a new test, will open that in a moment, but I don't think it's any big problem if we change the doc in one changeset and address the problem of test coverage in another, since that gap has been there a while anyway. |
Description
This changeset clarifies in the documentation that the core config field
ownermay be given asnick@hostas well as a nick, and also covers this previously-untested usage in theTriggertests. (Edit: this applies to theadminsfield as well)Checklist
make qa(runsmake lintandmake test)1451 passed, 8 xfailed, 1 warning in 47.36sRemarks for reviewer
In moving the dummy configs to a fixture, I originally wanted to move the template out of the module namespace and into the fixture, relying on
textwrap.dedent()to take care of the indentation:But this approach can cause trouble with trying to add a field later if also using an f-string, so I settled on a fixture that returns source. In particular, the thing I stumbled on was wanting to write:
I don't feel strongly about eliminating the module-level
TMP_CONFIGand if desired I can update this PR to preserve it.