mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 19:11:30 +00:00
Integration test for hourly commits
This commit is contained in:
@@ -72,6 +72,15 @@ namespace Octokit.Tests.Integration.Clients
|
||||
Assert.NotNull(weeklyCommitCounts.Owner);
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task CanGetCommitPerHourPerDay()
|
||||
{
|
||||
var repository = await CreateRepository();
|
||||
await CommitToRepository(repository);
|
||||
var hourlyCommits = await _client.Statistics.GetCommitPerHour(repository.Owner, repository.Name);
|
||||
Assert.NotNull(hourlyCommits);
|
||||
}
|
||||
|
||||
async Task<RepositorySummary> CreateRepository()
|
||||
{
|
||||
var repoName = Helper.MakeNameWithTimestamp("public-repo");
|
||||
|
||||
Reference in New Issue
Block a user