karalabe / go-bluesky

Bluesky API client from Go
BSD 3-Clause "New" or "Revised" License
68 stars 7 forks source link

Skip tests if mandatory environment variables are not set #3

Closed mdlayher closed 1 year ago

mdlayher commented 1 year ago

Uses various *testing.T conveniences to set up a prepared client for use in tests, or to skip the test (rather than panicking) if the mandatory credentials are not set.

Removes the use of global state to set up the credentials.

Tests all pass just fine using an appkey I just generated!