Skip to content

Commit ce4145f

Browse files
committed
test: add missing PrintCurrentTest
1 parent 1bdfb94 commit ce4145f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/integration/user_settings_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ func TestUserSettingsApplications(t *testing.T) {
280280
defer tests.PrepareTestEnv(t)()
281281

282282
t.Run("Applications", func(t *testing.T) {
283+
defer tests.PrintCurrentTest(t)()
284+
283285
session := loginUser(t, "user2")
284286
req := NewRequest(t, "GET", "/user/settings/applications")
285287
resp := session.MakeRequest(t, req, http.StatusOK)
@@ -289,9 +291,13 @@ func TestUserSettingsApplications(t *testing.T) {
289291
})
290292

291293
t.Run("OAuth2", func(t *testing.T) {
294+
defer tests.PrintCurrentTest(t)()
295+
292296
session := loginUser(t, "user2")
293297

294298
t.Run("OAuth2ApplicationShow", func(t *testing.T) {
299+
defer tests.PrintCurrentTest(t)()
300+
295301
req := NewRequest(t, "GET", "/user/settings/applications/oauth2/2")
296302
resp := session.MakeRequest(t, req, http.StatusOK)
297303
doc := NewHTMLParser(t, resp.Body)
@@ -300,11 +306,15 @@ func TestUserSettingsApplications(t *testing.T) {
300306
})
301307

302308
t.Run("OAuthApplicationsEdit", func(t *testing.T) {
309+
defer tests.PrintCurrentTest(t)()
310+
303311
req := NewRequest(t, "GET", "/user/settings/applications/oauth2/2")
304312
resp := session.MakeRequest(t, req, http.StatusOK)
305313
doc := NewHTMLParser(t, resp.Body)
306314

307315
t.Run("Invalid URL", func(t *testing.T) {
316+
defer tests.PrintCurrentTest(t)()
317+
308318
req := NewRequestWithValues(t, "POST", "/user/settings/applications/oauth2/2", map[string]string{
309319
"_csrf": doc.GetCSRF(),
310320
"application_name": "Test native app",
@@ -319,6 +329,8 @@ func TestUserSettingsApplications(t *testing.T) {
319329
})
320330

321331
t.Run("OK", func(t *testing.T) {
332+
defer tests.PrintCurrentTest(t)()
333+
322334
req := NewRequestWithValues(t, "POST", "/user/settings/applications/oauth2/2", map[string]string{
323335
"_csrf": doc.GetCSRF(),
324336
"application_name": "Test native app",

0 commit comments

Comments
 (0)