diff options
author | Martin Fischer <martin@push-f.com> | 2025-04-08 19:25:36 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-04-14 07:04:45 +0200 |
commit | e29d27533725819ec3f6d05a27048d3d2627b53e (patch) | |
tree | 5afba50408b25179edb4ea6445acfe1d3e051488 /lex-serve/main_test.go | |
parent | 96236c9d80cea2d6ba83591a7d08a8cc096fd8d3 (diff) |
refactor: port fetchers to Go
* Austria: upgraded to RIS API v2.6 because v2.5 has been turned off
Diffstat (limited to 'lex-serve/main_test.go')
-rw-r--r-- | lex-serve/main_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
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", } |