mirror of
https://github.com/progval/irctest.git
synced 2025-04-04 14:29:46 +00:00
Update Sable and make LINKS test support it
This commit is contained in:
2
.github/workflows/test-stable.yml
vendored
2
.github/workflows/test-stable.yml
vendored
@ -1140,7 +1140,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: sable
|
||||
ref: 52397dc9e0f27c3ed197f984c00f06639870716d
|
||||
ref: baed3ef9ac4550dc36a45b758436769e82e8ec58
|
||||
repository: Libera-Chat/sable
|
||||
- name: Install rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
|
@ -3,6 +3,13 @@ from irctest.numerics import ERR_UNKNOWNCOMMAND, RPL_ENDOFLINKS, RPL_LINKS
|
||||
from irctest.patma import ANYSTR, StrRe
|
||||
|
||||
|
||||
def _server_info_regexp(case: cases.BaseServerTestCase) -> str:
|
||||
if case.controller.software_name == "Sable":
|
||||
return ".+"
|
||||
else:
|
||||
return "test server"
|
||||
|
||||
|
||||
class LinksTestCase(cases.BaseServerTestCase):
|
||||
@cases.mark_specifications("RFC1459", "RFC2812", "Modern")
|
||||
def testLinksSingleServer(self):
|
||||
@ -56,7 +63,7 @@ class LinksTestCase(cases.BaseServerTestCase):
|
||||
"nick",
|
||||
"My.Little.Server",
|
||||
"My.Little.Server",
|
||||
StrRe("0 (0042 )?test server"),
|
||||
StrRe(f"0 (0042 )?{_server_info_regexp(self)}"),
|
||||
],
|
||||
)
|
||||
|
||||
@ -119,7 +126,7 @@ class ServicesLinksTestCase(cases.BaseServerTestCase):
|
||||
"nick",
|
||||
"My.Little.Server",
|
||||
"My.Little.Server",
|
||||
StrRe("0 (0042 )?test server"),
|
||||
StrRe(f"0 (0042 )?{_server_info_regexp(self)}"),
|
||||
],
|
||||
)
|
||||
self.assertMessageMatch(
|
||||
|
@ -249,7 +249,7 @@ software:
|
||||
name: Sable
|
||||
repository: Libera-Chat/sable
|
||||
refs:
|
||||
stable: 52397dc9e0f27c3ed197f984c00f06639870716d
|
||||
stable: baed3ef9ac4550dc36a45b758436769e82e8ec58
|
||||
release: null
|
||||
devel: master
|
||||
devel_release: null
|
||||
|
Reference in New Issue
Block a user