From e29d27533725819ec3f6d05a27048d3d2627b53e Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 8 Apr 2025 19:25:36 +0200 Subject: refactor: port fetchers to Go * Austria: upgraded to RIS API v2.6 because v2.5 has been turned off --- lex-serve/main_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lex-serve/main_test.go') diff --git a/lex-serve/main_test.go b/lex-serve/main_test.go index 00cc3a3..4783fb3 100644 --- a/lex-serve/main_test.go +++ b/lex-serve/main_test.go @@ -8,6 +8,7 @@ import ( "testing" "github.com/peter-evans/patience" + "push-f.com/lex-surf/internal/lex" ) func newHandler() handler { @@ -20,7 +21,7 @@ func newHandler() handler { SearchURL: "https://lex.gov.zu/?search=%s", }, }, - lawsByCC: map[string]map[string]law{}, + lawsByCC: map[string]map[string]lex.Law{}, } } @@ -116,8 +117,8 @@ func TestSearchRedirect(t *testing.T) { func TestLawRedirect(t *testing.T) { h := newHandler() - h.lawsByCC["zu"] = map[string]law{} - h.lawsByCC["zu"]["zepl"] = law{ + h.lawsByCC["zu"] = map[string]lex.Law{} + h.lawsByCC["zu"]["zepl"] = lex.Law{ URL: "https://lex.gov.zu/zeppelin-code", } -- cgit v1.2.3