tests/thirdparty: add skip option (#228)
Add the ability to skip third-party tests by specifying a known issue.
This commit is contained in:
committed by
GitHub
parent
6c0ed1c4e8
commit
2867bd7e01
@@ -25,3 +25,20 @@ func TestClientRepository(t *testing.T) {
|
||||
}
|
||||
t.Logf("repository = %s", j)
|
||||
}
|
||||
|
||||
func TestClientIssue(t *testing.T) {
|
||||
test.RequiresNetwork(t)
|
||||
|
||||
ctx := context.Background()
|
||||
g := NewClient(WithHTTPClient(http.DefaultClient), WithTokenFromEnvironment())
|
||||
r, err := g.Issue(ctx, "octocat", "hello-world", 42)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
j, err := json.MarshalIndent(r, "", "\t")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Logf("issue = %s", j)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user