mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
tests: Updates and fixes for tests, changing master to main and adding flaky tests marker (#2511)
This commit is contained in:
@@ -126,7 +126,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanCreatePendingReview()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -156,7 +156,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanCreatePendingReviewWithRepositoryId()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -186,7 +186,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanCreateCommentedReview()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -217,7 +217,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanCreateCommentedReviewWithRepositoryId()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -248,7 +248,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanCreateChangesRequestedReview()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -279,7 +279,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanCreateChangesRequestedReviewWithRepositoryId()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -310,7 +310,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanCreateApprovedReview()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -341,7 +341,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanCreateApprovedReviewWithRepositoryId()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -388,7 +388,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanDeleteReview()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -405,7 +405,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanDeleteReviewWithRepositoryId()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -438,7 +438,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanDismissReview()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -453,7 +453,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanDismissReviewWithRepositoryId()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -565,7 +565,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanSubmitCommentedReview()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -586,7 +586,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanSubmitCommentedReviewWithRepositoryId()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -607,7 +607,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanSubmitChangesRequestedReview()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -628,7 +628,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanSubmitChangesRequestedReviewWithRepositoryId()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -649,7 +649,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanSubmitApprovedReview()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
@@ -670,7 +670,7 @@ public class PullRequestReviewsClientTests
|
||||
[DualAccountTest]
|
||||
public async Task CanSubmitApprovedReviewWithRepositoryId()
|
||||
{
|
||||
using (var context = await _github.CreateRepositoryContext("test-repo"))
|
||||
using (var context = await _github.CreateRepositoryContextWithAutoInit("test-repo"))
|
||||
{
|
||||
await _github.CreateTheWorld(context.Repository);
|
||||
var pullRequest = await _github2.CreatePullRequest(context.Repository);
|
||||
|
||||
Reference in New Issue
Block a user