test: update the integration tests to the 1.0 command and output behavior

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-18 17:14:46 +02:00
1 parent 061652810a
commit 843c3c2977
3 files changed
+14 -10

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ func TestGiteaPullEditLifecycle(t *testing.T) {
execute("label", "export", "-R", repo.FullName, "--output-file", exportPath)
exported, err := os.ReadFile(exportPath)
require.NoError(t, err)
require.Contains(t, string(exported), "00ff00 review ;")
require.Contains(t, string(exported), "#00ff00 review\n")
jsonExportPath := exportPath + ".json"
execute("label", "export", "-R", repo.FullName, "--output-file", jsonExportPath, "--json")
jsonExport, err := os.ReadFile(jsonExportPath)