docs: Remove sibling product and lab path leaks

Outsiders reading this module should not see private sibling
names (tradey), unfinished rewire notes, or /fast/projects
lab paths. Keep the library self-contained in README, design,
plan, and test fixtures/identity strings.
This commit is contained in:
s1d3sw1ped_bot
2026-09-01 19:43:35 +00:00
parent 6d02894e5f
commit 9e711957c0
7 changed files with 74 additions and 74 deletions
+8 -8
View File
@@ -60,14 +60,14 @@ func TestWatchlists_toolNames(t *testing.T) {
name: "Create",
call: func(c *watchlists.Client) error {
return c.Create(context.Background(), watchlists.CreateRequest{
DisplayName: "TRADEY",
DisplayName: "Tech",
IconEmoji: "📈",
DisplayDescription: "vwap book",
})
},
wantName: "create_watchlist",
wantArgs: map[string]any{
"display_name": "TRADEY",
"display_name": "Tech",
"icon_emoji": "📈",
"display_description": "vwap book",
},
@@ -77,7 +77,7 @@ func TestWatchlists_toolNames(t *testing.T) {
call: func(c *watchlists.Client) error {
return c.Update(context.Background(), watchlists.UpdateRequest{
ListID: "wl-1",
DisplayName: "TRADEY",
DisplayName: "Tech",
IconEmoji: "📈",
DisplayDescription: "vwap book",
})
@@ -85,7 +85,7 @@ func TestWatchlists_toolNames(t *testing.T) {
wantName: "update_watchlist",
wantArgs: map[string]any{
"list_id": "wl-1",
"display_name": "TRADEY",
"display_name": "Tech",
"icon_emoji": "📈",
"display_description": "vwap book",
},
@@ -219,13 +219,13 @@ func TestTools(t *testing.T) {
func TestLists_rhntest(t *testing.T) {
t.Parallel()
s := rhntest.New(t)
s.Set("get_watchlists", json.RawMessage(`{"watchlists":[{"id":"wl-1","title":"TRADEY"}]}`))
s.Set("get_watchlists", json.RawMessage(`{"watchlists":[{"id":"wl-1","title":"Tech"}]}`))
c := watchlists.New(&client.Client{URL: s.URL})
got, err := c.Lists(context.Background(), watchlists.ListsRequest{})
if err != nil {
t.Fatal(err)
}
if len(got.Watchlists) != 1 || got.Watchlists[0].ID != "wl-1" || got.Watchlists[0].Title != "TRADEY" {
if len(got.Watchlists) != 1 || got.Watchlists[0].ID != "wl-1" || got.Watchlists[0].Title != "Tech" {
t.Fatalf("%+v", got)
}
if s.LastName() != "get_watchlists" {
@@ -260,7 +260,7 @@ func TestItems_rhntest(t *testing.T) {
func TestLists_titleFallsBackToName(t *testing.T) {
t.Parallel()
c := watchlists.New(client.Func(func(ctx context.Context, name string, args map[string]any) (json.RawMessage, error) {
return json.RawMessage(`{"watchlists":[{"id":"wl-1","title":"tradey"},{"id":"wl-2","name":"Other"}]}`), nil
return json.RawMessage(`{"watchlists":[{"id":"wl-1","title":"tech"},{"id":"wl-2","name":"Other"}]}`), nil
}))
got, err := c.Lists(context.Background(), watchlists.ListsRequest{})
if err != nil {
@@ -268,7 +268,7 @@ func TestLists_titleFallsBackToName(t *testing.T) {
}
want := watchlists.ListsResult{
Watchlists: []watchlists.Watchlist{
{ID: "wl-1", Title: "tradey"},
{ID: "wl-1", Title: "tech"},
{ID: "wl-2", Title: "Other"},
},
}