mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 20:30:41 +00:00
added one integration test
This commit is contained in:
@@ -10,6 +10,7 @@ public class RepositoryPagesClientTests
|
||||
readonly IRepositoryPagesClient _repositoryPagesClient;
|
||||
const string owner = "octokit";
|
||||
const string name = "octokit.net";
|
||||
const int repositoryId = 7528679;
|
||||
|
||||
public TheGetMethod()
|
||||
{
|
||||
@@ -23,5 +24,12 @@ public class RepositoryPagesClientTests
|
||||
var data = await _repositoryPagesClient.Get(owner, name);
|
||||
Assert.Equal("https://api.github.com/repos/octokit/octokit.net/pages", data.Url);
|
||||
}
|
||||
|
||||
[IntegrationTest(Skip= "These tests require repository admin rights - see https://github.com/octokit/octokit.net/issues/1263 for discussion")]
|
||||
public async Task ReturnsMetadataWithRepositoryId()
|
||||
{
|
||||
var data = await _repositoryPagesClient.Get(repositoryId);
|
||||
Assert.Equal("https://api.github.com/repos/octokit/octokit.net/pages", data.Url);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user