diff options
Diffstat (limited to 'internal/conf/mocks.go')
-rw-r--r-- | internal/conf/mocks.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/conf/mocks.go b/internal/conf/mocks.go index d4e57d38..af5b1bd7 100644 --- a/internal/conf/mocks.go +++ b/internal/conf/mocks.go @@ -16,6 +16,14 @@ func SetMockApp(t *testing.T, opts AppOpts) { }) } +func SetMockAuth(t *testing.T, otps AuthOpts) { + before := Auth + Auth = otps + t.Cleanup(func() { + Auth = before + }) +} + func SetMockServer(t *testing.T, opts ServerOpts) { before := Server Server = opts |