test(parity): add behavior suite regression coverage

This commit is contained in:
Micheal Wilkinson
2026-03-21 10:58:08 +00:00
parent bbe41a6d72
commit abfd6b817b
3 changed files with 51 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package core_test
import (
"bytes"
"io"
"os"
"path/filepath"
@@ -127,3 +128,15 @@ func (s *PullSuite) TestPullAll_UpdatesAllCastlesFromOrigin() {
func (s *PullSuite) TestPullAll_NoCastlesIsNoop() {
require.NoError(s.T(), s.app.PullAll())
}
func (s *PullSuite) TestPullAll_PrintsCastlePrefixes() {
_, _ = s.createRemoteWithClone("alpha")
_, _ = s.createRemoteWithClone("zeta")
stdout := &bytes.Buffer{}
s.app.Stdout = stdout
require.NoError(s.T(), s.app.PullAll())
require.Contains(s.T(), stdout.String(), "alpha:")
require.Contains(s.T(), stdout.String(), "zeta:")
}